Python 2.7.3 是我的 mac os x 上的默认版本。我已经安装了 3.3.2 版当我创建虚拟环境时没有指定任何版本的 python 一切都很好
当我尝试使用 3.3.2(带有 -p 标志)创建虚拟环境时,出现以下错误:
Buraks-MacBook-Pro:VIRTUAL_ENVIRONMENTS burakk$ virtualenv -p /Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3 django_ozo
Running virtualenv with interpreter /Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3
New python executable in django_ozo/bin/python3.3
Also creating executable in django_ozo/bin/python
Installing distribute.................................................................................................................................................................................................................................................................................................................................done.
Installing pip...
Error [Errno 2] No such file or directory: '/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/django_ozo/bin/easy_install' while executing command /Users/burakk/BurakW...ozo/bin/easy_install /Library/Python/2.7/...pport/pip-1.1.tar.gz
...Installing pip...done.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/virtualenv.py", line 2270, in <module>
main()
File "/Library/Python/2.7/site-packages/virtualenv.py", line 928, in main
never_download=options.never_download)
File "/Library/Python/2.7/site-packages/virtualenv.py", line 1042, in create_environment
install_pip(py_executable, search_dirs=search_dirs, never_download=never_download)
File "/Library/Python/2.7/site-packages/virtualenv.py", line 640, in install_pip
filter_stdout=_filter_setup)
File "/Library/Python/2.7/site-packages/virtualenv.py", line 966, in call_subprocess
cwd=cwd, env=env)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 820, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 1438, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/burakk/BurakWorks/Web/VIRTUAL_ENVIRONMENTS/django_ozo/bin/easy_install'
谢谢...