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

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

问题描述

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

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:\Python27\Scripts
Installing easy_install.exe script to C:\Python27\Scripts
error: C:\Python27\Scripts\easy_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:\temp)。

从那里再次运行安装。

Run the install.
After the error copy the easy_install .exe and .py to a temp dir (i.e. c:\temp).
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 ;)

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

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