LoginSignup
2
1

More than 5 years have passed since last update.

pip install opencv-contrib-pythonでPermission denied発生したときの対処法

Posted at

環境

  • wiindows 10

  • Python 3.7.2

pip install opencv-contrib-pythonを実行したところエラーが発生

Could not install packages due to an EnvironmentError: [WinError 5] アクセスが拒否されました。: 'c:\\users\\user\\appdata\\local\\programs\\python\\python37\\Lib\\site-packages\\cv2\\cv2.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

--userをつけたらいいよと言ってるので

pip install opencv-contrib-python --user

を実行したところ成功

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1