按照 Sphinx 主页上的说明,我打开一个命令窗口并输入:
C:\>easy_install -U Sphinx
(我假设升级的 -U 选项应该删除现有版本。)
我收到以下错误消息(我有管理员权限):
Creating c:\python32\lib\site-packages\site.py
Processing Sphinx
Running setup.py -q bdist_egg --dist-dir C:\Sphinx\egg-dist-tmp-tmopj5
error: Setup script exited with error: SandboxViolation:
open('C:\\Python32\\lib\\lib2to3\\Grammar3.2.3.final.0.pickle', 'wb') {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
谁能帮我理解和解决问题?请不要告诉我使用 pip,当我尝试使用以下方式安装 pip 时,我遇到了同样的错误:
C:\>easy_install pip
在此先感谢您的帮助。