1

当我尝试跑步时

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 文件,但问题仍然存在。有什么解决办法吗?

编辑:

我应该解释一下,我正在尝试创建一个位于 的 virtualenv,<path name>因为我想为那个版本的 Python 安装一个带有 pip 的包。

4

0 回答 0