Permission denied when installing Tensorflow

前端 未结 9 1406
长情又很酷
长情又很酷 2020-12-07 00:52

I am trying to install TensorFlow by Anaconda(My Python is 3.5.2 edition).

When I run:

(tensorflow)C:> pip install --ignore-installed --upgrade h         


        
相关标签:
9条回答
  • 2020-12-07 01:27

    Run the cmd console as adminstrator, then execute you installation.

    You can key cmd in run or Cortana, then right click the console and select run as adminstrator.

    0 讨论(0)
  • 2020-12-07 01:30

    I had the same error for python 3.6, ran cmd through admin mode, worked like a charm.

    0 讨论(0)
  • 2020-12-07 01:32

    Maybe because there are other processes using tensorflow. Try to close these processes and then install or update tensorflow.

    0 讨论(0)
  • 2020-12-07 01:32

    I had a file locked up from a crashed Jupyter run. Rebooted and reinstalled as Adm. All good.

    0 讨论(0)
  • 2020-12-07 01:35

    I had permission denied problem on windows but this worked for me:

    1. right click on cmd or git console > run as administrator
    2. pip install tensorflow
    0 讨论(0)
  • 2020-12-07 01:36

    Might be late but I got the exact same error and this is what happened. My issue was that there was some file that was being used inside numpy that was locked by anaconda(or some other process) I guess and tensorflow needed that file. Hence I got permission denied. All I did was shut down every process anaconda, jupyter etc and ran:

    1) conda update --all
    2) pip install --ignore-installed tensorflow
    

    Open your cmd as an administrator and do not activate tensorflow. Just simply fire commands from your cmd. For eg: C:\\> pip install --ignore-installed tensorflow (your directory may vary) should be fine. Let me know if you get stuck.

    0 讨论(0)
提交回复
热议问题