Python anaconda 访问被拒绝
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45063396/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Python anaconda access denied
提问by Zoe
I'm trying to update tensorflow.
我正在尝试更新张量流。
pip install --upgrade tensorflow-gpu
It first checks for the packages and creates the following error
它首先检查包并创建以下错误
Installing collected packages: markdown, werkzeug, numpy, tensorflow-gpu, setuptools
Found existing installation: Markdown 2.2.0
Uninstalling Markdown-2.2.0:
PermissionError: [WinError 5] Access is denied: 'c:\program files\anaconda3\lib\site-packages\markdown-2.2.0.dist-info\description.rst'
I'm not very experienced with Windows, I did all my work on Linux so far, so what do I do here?
我对 Windows 不是很有经验,到目前为止我在 Linux 上完成了所有工作,那么我在这里做什么?
采纳答案by John Morrison
If you choose to install Anaconda for All Users you will need to escalate privileges on the Command Prompt. Right click CMD and choose "Run As Admin". If you do not want to do this every time you will need to set the permissions on the entire Anaconda directory for you user to Full Access.
如果您选择为所有用户安装 Anaconda,您将需要升级命令提示符的权限。右键单击 CMD 并选择“以管理员身份运行”。如果您不想每次都这样做,则需要为您的用户将整个 Anaconda 目录的权限设置为完全访问。
回答by Prabhat Thapa
Run the cmd in administrative mode and type
在管理模式下运行cmd并输入
pip install --upgrade tensorflow-gpu --user
pip install --upgrade tensorflow-gpu --user
This worked for me
这对我有用