-2

I'm trying to install pymprog (Python 3.7) and I get the following message :

Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\program files\\python37\\Lib\\site-packages\\swiglpk'
Consider using the `--user` option or check the permissions.

Any ideas?

Kaan
  • 5,434
  • 3
  • 19
  • 41

3 Answers3

0

Try running pip as super user, if your on Linux you'll start the command with sudo. If on Windows, open terminal as admin.

Kelyn Paul
  • 26
  • 1
  • 7
0

this happens when you do not have permission to your program files folder (probably restricted by your admin or super user). adding the --user option while installing would fix the problem by installing python under your user folder instead. Hope that helps

laserany
  • 1,257
  • 1
  • 8
  • 17
0

Just run command prompt as administrator and the problem is fixed!

Thanks guys!