Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python anaconda access denied

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?

like image 240
Zoe Avatar asked Jul 12 '17 16:07

Zoe


2 Answers

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.

like image 188
John Morrison Avatar answered Nov 15 '22 11:11

John Morrison


Run the cmd in administrative mode and type

pip install --upgrade tensorflow-gpu --user

This worked for me

like image 4
Prabhat Thapa Avatar answered Nov 15 '22 11:11

Prabhat Thapa