当我尝试运行时
sudo virtualenv -p /Library/Frameworks/Python.framework/Versions/7.3/Resources/Python.app/Contents/MacOS
它显示以下错误:
Running virtualenv with interpreter
/Library/Frameworks/Python.framework/Versions/7.3/Resources/Python.app/Contents/MacOS
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/bin/virtualenv", line 9, in <module>
load_entry_point('virtualenv==1.8.2', 'console_scripts', 'virtualenv')()
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/virtualenv.py", line 897, in main
popen = subprocess.Popen([interpreter, file] + sys.argv[1:], env=env)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 818, in __init__
restore_signals, start_new_session)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/subprocess.py", line 1416, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
我尝试删除我的pip.log文件this answer建议我,但问题仍然存在。任何解决方案?
编辑:
我应该解释一下,我正在尝试创建位于<path name>
的virtualenv,因为我想为该版本的Python安装一个带有pip的包。