unable to install pip package for tensorflow (Gives permission denied)

  anaconda3, python, rasa, tensorflow, windows

I am trying install rasa package on a windows 10 PC as user on my office laptop

Things tried:

  1. pip install rasa
  2. pip install –user rasa
  3. tried in anaconda prompt in admin mode
  4. login as administrator and tried in both cmd and conda prompt
  5. tried by creating a new env in both cmd and conda environment

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘C:UserskrishnamurthAppDataRoamingPythonPython37site-packagestensorflowincludeexternalawsaws-cpp-sdk-s3includeawss3modelGetObjectTorrentRequest.h’
Check the permissions.

But everything leads to a same issue (i.e tries to fetch a aws file from tensorflow directory and fails). I also see that the tensorflow module never gets installed. So I tried pip install tensorflow with the above combinations and I get a different error

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘D:Anaconda3envsrasaLibsite-packagestensorflowincludeexternalawsaws-cpp-sdk-s3includeawss3modelObjectTorrentRequest.h’ Consider using the --user option or check the permissions.

Source: Windows Questions

LEAVE A COMMENT