skip to Main Content

I want to install many packages for my project like flask or psycopg2 or flask-sqlachermy but I can’t.

When I use the pip I receive this error message:

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\Users\ASUS\AppData\Local\Programs\Python\Python310\Lib\site-packages\markupsafe\_speedups.c'
Consider using the `--user` option or check the permissions.

When I use the pipenv I receive this error message:

[36mERROR: Could not install packages due to an OSError: [Errno 13] Permission denied:
'C:\Users\ASUS\.virtualenvs\ASUS-mVsQ382S\Lib\site-packages\markupsafe\_speedups.c'
Check the permissions.

I tried to install again the markupsafe package because I thint that it is the source of the problem but it’s not working.

2

Answers


  1. Try to supply –user flag on your pip install command, otherwise it does a global installation and seems you don’t have permissions for that.

    Login or Signup to reply.
  2. If it is telling you that you don’t have permission, then it is likely that you would need to be an administrator while using the command prompt

    Try right clicking on the command prompt app before opening and click ‘Run as Administrator’. This should fix the problem

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search