[英]error when creating a virtual environment under linux Ubuntu
I entered 'mkvietualenv ssccenv' at the terminal and reported an error. 我在终端上输入了“ mkvietualenv ssccenv”,并报告了一个错误。
'OSError: Command /root/.virtualenvs/ssccenv/bin/python2 - setuptools pkg_resources pip wheel failed with error code 2'
can you tell me why is that- 你能告诉我为什么吗
Can you try the following: 您可以尝试以下方法:
Install pip first (if not installed) 首先安装pip(如果未安装)
sudo apt-get install python3-pip
Then install virtualenv using pip3 然后使用pip3安装virtualenv
sudo pip3 install virtualenv
Now create a virtual environment 现在创建一个虚拟环境
python3 -m virtualenv /path/to/myenv
or 要么
virtualenv -p python3 /path/to/myenv
The above mentioned steps are for Python 3. Since you are using Python 3, these should work. 上面提到的步骤适用于Python3。由于您使用的是Python 3,因此这些方法应该可以使用。
尝试通过创建虚拟环境,
mkvirtualenv -p python3 ssccenv
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.