Eduardo Diaz
Eduardo Diaz

Reputation: 49

pip not working Windows

pip is not working on Windows its giving me an empty output usingpip install virtualenv but when I try and use virtualenv i get virtualenv is not recognized as an internal or external command, operable program or batch file. enter image description here

I've added both C:[pythonroute]\Python35-32 and C:[pythonroute]\Python35-32\Scripts to my enviroment variables

the cmd command python works

enter image description here

Upvotes: 0

Views: 3085

Answers (3)

Gabriel Gherman
Gabriel Gherman

Reputation: 1

On the main folder of your venv, there's a file called "pyvenv.cfg"

Open with notepad and it will be like:

home = c:\program files (x86)\python38-32
implementation = CPython
version_info = 3.8.3.final.0
virtualenv = 20.0.21
include-system-site-packages = false
base-prefix = c:\program files (x86)\python38-32
base-exec-prefix = c:\program files (x86)\python38-32
base-executable = c:\program files (x86)\python38-32\python.exe

Make sure to change this line: include-system-site-packages = true

Also, make sure to give yourself Full Control of the venv folder. Right click on the folder, Proprieties, Security, Edit. Then select your User and enable full control.

After that, start your venv and pip should be working.

Upvotes: 0

MartinP
MartinP

Reputation: 535

Maybe try use the following command if You can run python via cmd.

python -m pip install virtualenv

Upvotes: 1

Matt
Matt

Reputation: 1

Try updating pip. You can do this by:

pip install --upgrade pip

Make sure you run this as administrator. Additionally check if virtualenv is installed via

pip list

Upvotes: 0

Related Questions