4

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\Users\Sampath\anaconda3\Lib\site-packages\~5py\defs.cp38-win_amd64.pyd' Consider using the --user option or check the permissions.

I tried pip install mediapipe

  • Did you try following the error message? You can attach `--user` to install it. – Alexander Santos Sep 30 '21 at 17:16
  • Try using the anaconda installer `conda install mediapipe`. – tdelaney Sep 30 '21 at 17:21
  • 1
    I’m voting to close this question because as we can read in the comments to the answer, restarting the computer solved the problem, so it is clearly not a programming question. – TDG Oct 02 '21 at 10:23

1 Answers1

3

EnvironmentError: Access is denied errors usually stem from one of two reasons:

  1. You do not have the proper permissions to install these files, and you should try running the same commands in an Administrator Command Prompt. 90% of the time, this should solve the problem.
  2. If the first doesn't work, then the problem is usually from an external program accessing a file, and you (or the installation script) are trying to delete that file (you cannot delete a file that is opened by another program). Try to restart your computer, so that whatever process is using that file will be shut down. Then, try the command again.
Xiddoc
  • 1,810
  • 3
  • 6
  • 23