easy_install.exe 权限在 Windows 8 上被拒绝 [英] easy_install.exe Permission Denied on Windows 8

查看:31
本文介绍了easy_install.exe 权限在 Windows 8 上被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以管理员身份运行命令提示符我尝试运行:

Running command prompt as an administrator I try to run:

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:Python27Scripts
Installing easy_install.exe script to C:Python27Scripts
error: C:Python27Scriptseasy_install.exe: Permission denied

过去几个小时我一直在互联网上搜寻可能的解决方案.我试过弄乱 UAC 设置并将它们设置为从不通知.但是,我仍然收到此权限被拒绝错误.

I've spent the past few hours scouring the internet for possible solutions. I've tried messing with the UAC settings and have them set to Never Notify. Yet, I'm still getting this permission denied error.

推荐答案

可以阅读解决方案这里.

运行安装.
出错后将 easy_install .exe 和 .py 复制到临时目录(即 c: emp).
从那里再次运行安装.

Run the install.
After the error copy the easy_install .exe and .py to a temp dir (i.e. c: emp).
Run the install again from there.

在 Windows 上,easy_install 二进制文件在安装过程中处于使用状态,因此它无法覆盖自身.(Easy_install 本身是您尝试自行安装的 setuptools 的一部分;)

On windows, the easy_install binary is in-use during install so it can't overwrite itself. (Easy_install itself is part of the setuptools you're trying to install with itself ;)

这篇关于easy_install.exe 权限在 Windows 8 上被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆