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
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.
I had the same error for python 3.6, ran cmd through admin mode, worked like a charm.
Maybe because there are other processes using tensorflow. Try to close these processes and then install or update tensorflow.
I had a file locked up from a crashed Jupyter run. Rebooted and reinstalled as Adm. All good.
I had permission denied problem on windows but this worked for me:
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.