我正在尝试使用virtualenv创建一个环境。在
virtualenv test
New python executable in test/bin/python
Error [Errno 2] No such file or directory while executing command install_name_tool -change /System/Library/Fram.../Versions/2.6/Python @executable_path/../.Python test/bin/python
Could not call install_name_tool -- you must have Apple's development tools installed
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 8, in <module>
load_entry_point('virtualenv==1.6.4', 'console_scripts', 'virtualenv')()
File "/Library/Python/2.6/site-packages/virtualenv-1.6.4-py2.6.egg/virtualenv.py", line 810, in main
never_download=options.never_download)
File "/Library/Python/2.6/site-packages/virtualenv-1.6.4-py2.6.egg/virtualenv.py", line 901, in create_environment
site_packages=site_packages, clear=clear))
File "/Library/Python/2.6/site-packages/virtualenv-1.6.4-py2.6.egg/virtualenv.py", line 1166, in install_python
py_executable])
File "/Library/Python/2.6/site-packages/virtualenv-1.6.4-py2.6.egg/virtualenv.py", line 843, in call_subprocess
cwd=cwd, env=env)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
OSError: [Errno 2] No such file or directory
文件夹创建正常,但缺少activate
之类的文件。有人吗?(我安装了xcode 3.2.3。运行Python2.6、osx 10.6.8)
在安装了XCode并使用appstore的最新maxosxlion(10.7.2)安装上运行virtualenv时,我也收到了同样的错误消息。在
我也错过了/usr/bin/install_name_工具,但是它在系统中。使用以下代码块中的端子。在
我用一个simlink从/Developer/usr/bin到/usr/bin
^{pr2}$输入“which”命令将生成:
在那之后我做了虚拟魔术
现在工作起来很有魅力!在
使用@gregglind's fork of virtualenv中的install_name_工具:
片尾:macdhuibh(https://github.com/pypa/virtualenv/issues/7)
开发人员工具安装不正确。我建议安装Xcode 4。在
相关问题 更多 >
编程相关推荐