我使用的是python版本
Python 2.7.13 :: Anaconda custom(64位)
当我尝试通过
创建虚拟环境时virtualenv venv
显示错误:
New python executable in /home/k/Desktop/heroku/pincode2/venv/bin/python
Installing setuptools, pip, wheel...
Complete output from command /home/k/Desktop/hero...ode2/venv/bin/python - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 7, in <module>
File "/home/k/anaconda2/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/__init__.py", line 21, in <module>
File "/home/k/anaconda2/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/__init__.py", line 62, in <module>
File "/home/k/anaconda2/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/__init__.py", line 29, in <module>
ImportError: No module named urllib3
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "/home/k/anaconda2/bin/virtualenv", line 11, in <module>
sys.exit(main())
File "/home/k/anaconda2/lib/python2.7/site-packages/virtualenv.py", line 713, in main
symlink=options.symlink)
File "/home/k/anaconda2/lib/python2.7/site-packages/virtualenv.py", line 945, in create_environment
download=download,
File "/home/k/anaconda2/lib/python2.7/site-packages/virtualenv.py", line 901, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/home/k/anaconda2/lib/python2.7/site-packages/virtualenv.py", line 797, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/k/Desktop/hero...ode2/venv/bin/python - setuptools pip wheel failed with error code 1
但已经安装了urllib3。有帮助吗?拜托。