Windows 上的 pip 安装访问被拒绝 [英] pip install access denied on Windows
本文介绍了Windows 上的 pip 安装访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在 Windows 上运行 pip install mitmproxy
,但我一直被拒绝访问,即使使用 cmd
和 PowerShell
code>以管理员身份运行选项.
I am trying to run pip install mitmproxy
on Windows, but I keep getting access denied, even with cmd
and PowerShell
using the Run as Administrator
option.
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'
我怎样才能做到这一点?
How can I make this work?
推荐答案
如果是 windows,在 cmd 中尝试使用 python 可执行文件运行 pip install
In case of windows, in cmd try to run pip install using python executable
例如
python -m pip install mitmproxy
这应该有效,至少它对我的其他软件包安装有效.
this should work, at least it worked for me for other package installation.
这篇关于Windows 上的 pip 安装访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文