[Python] How to install virtualenv on windows path without permission denied error?

Discussão em 'Python' iniciado por Stack, Abril 18, 2025.

  1. Stack

    Stack Membro Participativo

    I got a new computer and I am setting up my environments to run django. I'm installed python and virtualenv. In windows 10, I tried to run virtualenv -p python . in the directory C:\Users\user\Dev\folder, but I'm getting the following error:

    Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\program files (x86)\\python\\python37-32\\lib\\site-packages\\pip-18.1.dist-info\\entry_points.txt' Consider using the--useroption or check the permissions.

    How do I give myself permissions to create an environment here? I have all admin privileges.

    I get this to work python -m virtualenv ., but I'm not sure why I can't get the other option to work. It's a suitable work around, but I've never had to do it this way before.

    Continue reading...

Compartilhe esta Página