Pythonsetuptools pkg_resources pip wheel 失败,错误代码为 1 [错误]

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

我在 ubuntu 16.04 上创建虚拟环境时出现以下错误。

OSError: Command /home/ubuntu/.virtua...skdeploy/bin/python2 - setuptools pkg_resources pip wheel failed with error code 1

添加以下语言环境变量

export LC_ALL="en_US.UTF-8"

export LC_CTYPE="en_US.UTF-8"

和运行virtualenv再次命令

先试试这个 1)

`sudo apt-get install python-setuptools`

2)

export LC_ALL="en_US.UTF-8"

export LC_CTYPE="en_US.UTF-8"