• Register
Log In
2 votes


When I try to run the below command on my command prompt:

python get-pip.py

It shows the following message:

C:\Users\ASUS>python get-pip.py
python: can't open file 'get-pip.py': [Errno 2] No such file or directory

How can I have pip installed in my system. Then why am I getting this error message and why I can not open this file. 

Thanks in advance.

5k points
reopened by

1 Answer

1 vote
Best answer


To solve your issue you can navigate to the folder with script

cd "C:\Python\Tools\Scripts"

or you can add this to your path varibale.Then try to run the command:

python get-pip.py


pip install <package_name>

or if that doesn't work use;

python -m pip install <package_name> 

or you can use this;

py -3 -m pip install <package_name>

If you installed pip in the time of your python installation this might be a problem. You should upgrade it by unning the command:

python -m pip install -U pip

Hope this helps you to solve your problem. If it is not working let me know.

Happy coding.

35k points
selected by

Related questions

0 votes
1 answer 521 views
I was creating a new project in django. Firstly I installed django in my system but when I run the command : python manage.py runserver It does not work It shows a message : python: can't open file 'manage.py': [Errno 2] No such file or directory ... django and I started a project by running the command : django-admin startproject Utility Why am I seeing this error message, do anyone know?
asked Mar 18 LizzyM 5.7k points
0 votes
1 answer 1.4K views
Problem : I was installing pyswip and needed to run a setup.py file.Using the command "python setup.py", I'm getting the following message: "python: can't open file 'setup.py': [Errno 2] No such file or directory." Trying to run other .py files from the terminal gives me the same results.
asked Oct 21, 2019 peterlaw 6.9k points
0 votes
1 answer 720 views
Problem : I am very new to Quartz. So whenever I try to install Quartz on my system using pip install Quartz, I face the following error. Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> ... [Errno 2] No such file or directory: 'requirements.txt' I am using Mac OSX with Anaconda. Does anyone have any clue on this issue?
asked Nov 27, 2019 alecxe 7.5k points
0 votes
1 answer 874 views
Problem : Following is my issue: I tried to install mysqlclient like below : C:\Users\alecxe>pip install mysqlclient Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1 cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz Installed ... beginner to this and would be very happy if any input as to how to go about fixing above error.
asked Dec 27, 2019 alecxe 7.5k points
1 vote
1 answer 23 views
Problem: Hello Kodlogs, I just joined this forum. I found you people knowledgeable and friendly alongside. Well, I am a new python developer. Well, it could be exaggerative if I address me as a developer, I am a new student perhaps. I have to learn a lot ... The above open command producing an error of filenotfounderror: [errno 2] no such file or directory: But why? Could you identify the problem?
asked Jun 29 adamSw 9.8k points