mac os x 10.7.5 virtualenv无法找到easy_install

时间:2013-11-06 18:25:48

标签: macos virtualenv python-3.3

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'

谢谢...

1 个答案:

答案 0 :(得分:1)

我的virtualenv版本是1.7 ...将virtualenv升级到1.10解决了这个问题。