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

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

OSError: Command /home/ubuntu/.virtua...skdeploy/bin/python2 - setuptools pkg_resources pip wheel failed with error code 1 
+12
source share
2 answers

Add the following locals variables .

export LC_ALL="en_US.UTF-8"

export LC_CTYPE="en_US.UTF-8"

and run the virtualenv command again

+39
source

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" 
+3
source

Source: https://habr.com/ru/post/1264127/


All Articles