Windows PIP Troubleshooting

Here I read the posts, but something is not working. I am new to Python dev . I am running windows 7 64bit .

I am trying to install pip that I downloaded and easy_install in my c:\python27\scripts directory. When I use powershell and type

 "python easy_install pip" 

I get an error message:

"cannot open easy_install file": [Errno 2] There is no such file or directory.

This seems strange since I see that easy_install.exe is in this directory.

I added c:\python27\scripts to my system PATH , but to be honest, I'm not sure if this is correct.

Can anyone help? Thanks.

+6
source share
3 answers

The best way to fix this is to compile easy_install yourself. Download the source code first and then compile it with python.

1 - Go here .

enter image description here

2 - Then extract the file using 7-zip or any software that can extract the tar file. This is a tar.gz file, so after one extraction it will provide you with a tar file and then it will give you the actual directory and files for the configuration tools

3 - Change to the directory where you saved the extraction contents (using the command line). For example, if you saved the directory on your desktop, you cd Desktop , and then you go

cd dir_where_easy_install_is .

4 - Then run this python setup.py install command

This will install easy_install for you.

5 - Go back to your command prompt again and then just type easy_install pip and this will install pip.

Then go ahead and test it by installing django, just go to your command line and type pip install django . After downloading and installing, enter pip list and see if there is django there. If so, then the protocol completed successfully.

+6
source

Selected answer dint fix it

This is done: python -m pip install -U pip

+7
source

This worked with running python from its main directory with easy_install.py in the extracted setuptools directory.

enter image description here

Then the pip files should be in the Scripts directory.

enter image description here

Remember to run CMD as an administrator.

0
source

All Articles