Windows上的pip安装访问被拒绝 [英] pip install access denied on Windows

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

问题描述

我试图在Windows上运行pip install mitmproxy,但是即使使用Run as Administrator选项使用cmdPowerShell,我也一直拒绝访问.

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屋!

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