相关疑难解决方法(0)

在Windows上pip install access被拒绝

我试图pip install mitmproxy在Windows 上运行,但我仍然拒绝访问,即使使用cmdPowerShell使用该Run as Administrator选项.

WindowsError: [Error 5] Access is denied: 'c:\\users\\bruno\\appdata\\local\\temp\\easy_install-0fme6u\\cryptography-0.9.1\\.eggs\\cffi-1.1.2-py2.7-win-amd64.egg\\_cffi_backend.pyd'
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

python windows pip access-denied

93
推荐指数
8
解决办法
13万
查看次数

Windows 8上的easy_install.exe权限被拒绝

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

easy_install -U setuptools
Run Code Online (Sandbox Code Playgroud)

它返回以下内容:

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
Run Code Online (Sandbox Code Playgroud)

我花了几个小时在互联网上寻找可能的解决方案.我已经尝试搞乱UAC设置并将它们设置为Never Notify.然而,我仍然得到这个权限被拒绝的错误.

windows command-prompt setuptools easy-install windows-8

8
推荐指数
2
解决办法
8910
查看次数

在Windows上升级pip.exe时"访问被拒绝"

pip让我用一条消息升级:

You are using pip version 7.0.1, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Run Code Online (Sandbox Code Playgroud)

所以我运行了该命令,我得到一个例外,即pip无法卸载旧版本,因为拒绝访问我的用户目录:

    Collecting pip
    Downloading pip-7.0.3-py2.py3-none-any.whl (1.1MB)
      100% |################################| 1.1MB 292kB/s
    Installing collected packages: pip
    Found existing installation: pip 7.0.1
    Uninstalling pip-7.0.1:
      Successfully uninstalled pip-7.0.1
    Exception:
    Traceback (most recent call last):
    File "C:\Python27\lib\site-packages\pip\basecommand.py", line 223, in main
    status = self.run(options, args)
    File "C:\Python27\lib\site-packages\pip\commands\install.py", line 297, in run

    root=options.root_path,
    File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 633, in install
    requirement.commit_uninstall()
    File "C:\Python27\lib\site-packages\pip\req\req_install.py", line …

python windows pip python-2.7

5
推荐指数
1
解决办法
5624
查看次数