当我尝试使用virtualenv创建一个新环境时,我遇到了这个错误.我不认为我应该用sudo运行命令.尝试使用brew然后virtualenv重新安装python但没有什么可以拯救.
manishs-MacBook-Pro:manish Manish$ virtualenv manish
New python executable in /Users/Manish/manish/manish/bin/python2.7
Not overwriting existing python script /Users/Manish/manish/manish/bin/python (you must use /Users/Manish/manish/manish/bin/python2.7)
Please make sure you remove any previous custom paths from your /Users/Manish/.pydistutils.cfg file.
Installing setuptools, pip, wheel...
Complete output from command /Users/Manish/manish/manish/bin/python2.7 - setuptools pip wheel:
Collecting setuptools
Using cached setuptools-20.3.1-py2.py3-none-any.whl
Collecting pip
Collecting wheel
Installing collected packages: setuptools, pip, wheel
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/commands/install.py", line …Run Code Online (Sandbox Code Playgroud)