通过brew install python清理安装python后,我遇到以下错误.该链接属于我手动删除的以前的python安装.
$ virtualenv ENV
python: posix_spawn: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我正在使用MacOS 10.7.3,我通过pip安装了virtualenv:
$ sudo /usr/local/share/python/pip install virtualenv
Downloading/unpacking virtualenv
Downloading virtualenv-1.7.1.2.tar.gz (2.1Mb): 2.1Mb downloaded
Running setup.py egg_info for package virtualenv
warning: no previously-included files matching '*.*' found under directory 'docs/_templates'
Installing collected packages: virtualenv
Running setup.py install for virtualenv
warning: no previously-included files matching '*.*' found under directory 'docs/_templates'
Installing virtualenv script to /usr/local/share/python
Successfully installed virtualenv
Cleaning up...
$ virtualenv ENV
python: posix_spawn: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No …Run Code Online (Sandbox Code Playgroud)