'Installation issues with Tensorflow; PermissionError

I've been having a bit of difficulty installing tensorflow onto my computer, and would like some advice on where to go from here. To be clear, I am trying to install on Windows using the advice for anaconda in windows from the tensorflow website, and I am stuck at part 4 of installing the version without GPU support.

At first, I was having a TypeError, where parse() got an unexpected keyword (the issue in this thread). So I ran the conda install suggestions which were provided in the thread.

After that, I successfully installed both and tried to run:

pip install --ignore-installed --upgrade tensorflow

Which ran for a bit, but then my command prompt stated that I had thrown a PermissionError and that access is denied (the same error found here). To get past this, I tried opening Windows Powershell as an administrator instead, which still gave me this error. If you have any suggestions on what I could try next, it would be greatly appreciated.

EDIT: Here is the traceback error I get:

Traceback (most recent call last): File "C:\Users\awm\Anaconda3\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "C:\Users\awm\Anaconda3\lib\site-packages\pip\commands\install.py", line 342, in run prefix=options.prefix_path, File "C:\Users\awm\Anaconda3\lib\site-packages\pip\req\req_set.py", line 784, in install **kwargs File "C:\Users\awm\Anaconda3\lib\site-packages\pip\req\req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "C:\Users\awm\Anaconda3\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "C:\Users\awm\Anaconda3\lib\site-packages\pip\wheel.py", line 352, in move_wheel_files clobber(source, lib_dir, True) File "C:\Users\awm\Anaconda3\lib\site-packages\pip\wheel.py", line 323, in clobber os.unlink(destfile) PermissionError: [WinError 5] Access is denied: 'C:\\Users\\awm\\Anaconda3\\Lib\\site-packages\\numpy\\.libs\\libopenblas.BNVRK7633HSX7YVO2TADGR4A5KEKXJAW.gfortran-win_amd64.dll'



Solution 1:[1]

After restart of kernal and without loading any library try pip install --ignore-installed --upgrade tensorflow .

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 BIPIN KUMAR SINHA