在Mac OSX 10.7.5上mkvirtualenv失败:
$ mkvirtualenv tmp
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: virtualenv==1.7.1.2
Run Code Online (Sandbox Code Playgroud)
用pip安装virtualenv virtualenvwrapper:
Downloading/unpacking virtualenv
Downloading virtualenv-1.10.1.tar.gz (1.3MB): 1.3MB downloaded
Running setup.py egg_info for package virtualenv
warning: no files found matching '*.egg' under directory 'virtualenv_support'
warning: no previously-included …Run Code Online (Sandbox Code Playgroud)