Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pythonsetuptools pkg_resources pip wheel failed with error code 1 [Error]

I got the following error while creating virtual environment on ubuntu 16.04.

OSError: Command /home/ubuntu/.virtua...skdeploy/bin/python2 - setuptools pkg_resources pip wheel failed with error code 1
like image 660
CodeNinja101 Avatar asked Feb 12 '17 16:02

CodeNinja101


2 Answers

Add the following locale variables.

export LC_ALL="en_US.UTF-8"

export LC_CTYPE="en_US.UTF-8"

and run virtualenv command again

like image 67
Ganesh Pandey Avatar answered Nov 01 '22 12:11

Ganesh Pandey


First try this 1)

`sudo apt-get install python-setuptools`

and

2)

export LC_ALL="en_US.UTF-8"

export LC_CTYPE="en_US.UTF-8"
like image 24
Hardik Gajjar Avatar answered Nov 01 '22 10:11

Hardik Gajjar