我试图用sudo virtualenv curdir -p /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
创建一个新的virtualenv目录,但它抛出了以下错误:
Running virtualenv with interpreter /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 9, in <module>
load_entry_point('virtualenv==1.6.4', 'console_scripts', 'virtualenv')()
File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/virtualenv.py", line 785, in main
popen = subprocess.Popen([interpreter, file] + sys.argv[1:], env=env)
File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/subprocess.py", line 741, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/subprocess.py", line 1356, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 13] Permission denied
我知道不允许我这么做,但为什么?Python2.7就在那里,我想用它。有没有办法在我的虚拟现实中使用它?在
我希望这不是一个太基本的问题。我对Unix命令行还是个新手。在
您必须指向python可执行文件,这不是这里要做的。它位于
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
。运行这个相关问题 更多 >
编程相关推荐