以管理员身份运行命令提示符我尝试运行:
easy_install -U setuptools
它返回以下内容:
Searching for setuptools
Reading https://pypi.python.org/simple/setuptools/
Reading http://peak.telecommunity.com/snapshots/
Reading https://pypi.python.org/pypi/setuptools
Best match: setuptools 0.8
Processing setuptools-0.8-py2.7.egg
setuptools 0.8 is already the active version in easy-install.pth
Installing easy_install-script.py script to C:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
error: C:\Python27\Scripts\easy_install.exe: Permission denied
过去几个小时我一直在互联网上寻找可能的解决方案。我尝试过修改 UAC 设置并将它们设置为“从不通知”。然而,我仍然收到此权限被拒绝的错误。
您可以阅读解决方案here.
运行安装。
出现错误后,将 easy_install .exe 和 .py 复制到临时目录(即 c:\temp)。
从那里再次运行安装。
在 Windows 上,easy_install 二进制文件在安装过程中正在使用,因此它无法覆盖自身。 (Easy_install 本身是您尝试自行安装的安装工具的一部分;)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)