Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to install python-pip with sudo apt install python-pip this command. But I am facing following error Unable to locate package python-pip in Python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How Unable to locate package python-pip Error Occurs ?
I am trying to install python-pip with sudo apt install python-pip this command. But I am facing following error.
$ pip
Command ‘pip’ not found, but can be installed with:
sudo apt install python-pip
$ sudo apt install python-pip
[sudo] password for aiki:
Reading package lists…
Done Building dependency tree Reading state information… Done
C: Unable to locate package python-pip
How To Solve Unable to locate package python-pip Error ?
How To Solve Unable to locate package python-pip Error ?
To Solve Unable to locate package python-pip Error Just follow these command step by step: sudo apt-get install software-properties-common Then run this command: sudo apt-add-repository universe Now, sudo apt-get update Then sudo apt-get install python-pip Second solution is You just need to Identify version that installed in your System Use this command to find your installed version: ls /bin/python* If Python 2.X Installed then run This command: sudo apt-get install python2-pip If Python 3.X Installed then run This command: sudo apt-get install python3-pip Now your error should be solved.
Unable to locate package python-pip
To Solve Unable to locate package python-pip Error Just follow these command step by step: sudo apt-get install software-properties-common Then run this command: sudo apt-add-repository universe Now, sudo apt-get update Then sudo apt-get install python-pip Second solution is You just need to Identify version that installed in your System Use this command to find your installed version: ls /bin/python* If Python 2.X Installed then run This command: sudo apt-get install python2-pip If Python 3.X Installed then run This command: sudo apt-get install python3-pip Now your error should be solved.
Solution 1: Use this command
Just follow these command step by step.
sudo apt-get install software-properties-common
Then run this command.
sudo apt-add-repository universe
Now,
sudo apt-get update
Then
sudo apt-get install python-pip
Now your error should be solved.
Solution 2: Identify version that installed in your System
You just need to Identify version that installed in your System Use this command to find your installed version.
ls /bin/python*
If Python 2.X Installed then run This command.
sudo apt-get install python2-pip
If Python 3.X Installed then run This command.
sudo apt-get install python3-pip
Now your error should be solved.
Solution 3: Using curl
Download pip with curl. Just run this command. If you do not have curl installed then First of all install curl or skip this command.
apt-get install curl
https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Hope, Your problem might be solved now.
Solution 4: Reinstall in Windows
- First of all Launch a command prompt if it isn’t already open. To do so, open the Windows search bar, type cmd and click on the icon.
- Then, run the following command to download the get-pip.py file:
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- Then type this command:
- python get-pip.py
- Once you’ve installed PIP, you can test whether the installation has been successful by typing the following.
- pip help.
- Now, your error must be solved.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read