Why not just do sudo easy_install pip or if this is for python 2.6 sudo easy_install-2.6 pip?
This installs pip using the default python package installer system and saves you the hassle of manual set-up all at the same time.
This will allow you to then run the pip command for python package installation as it will be installed with the system python. I also recommend once you have pip using the virtualenv package and pattern. :)
Why not just do sudo easy_install pip or if this is for python 2.6 sudo easy_install-2.6 pip?
This installs pip using the default python package installer system and saves you the hassle of manual set-up all at the same time.
This will allow you to then run the pip command for python package installation as it will be installed with the system python. I also recommend once you have pip using the virtualenv package and pattern. :)
2020 Update:
For current Debian/Ubuntu, use
apt-get install python3-pip
to install pip3.
Old 2013 answer (easy_install is now deprecated):
Use setuptools to install pip: sudo easy_install pip
(I know the above part of my answer is redundant with klobucar's, but I can't add comments yet), so here's an answer with a solution to sudo: easy_install: command not found on Debian/Ubuntu: sudo apt-get install python-setuptools
Also, for python3, use easy_install3 and python3-setuptools.
For Python 3, use apt-get install python3-pip.
bash: pip: command not found
Command 'pip' not found, but can be installed with: Sudo apt get
$/#pip/python : command not found
Why do I get "command not found" with "pip install import-ipynb"?
Videos
If you install pip from the Ubuntu repositories pip will work with sudo (I have used pip this way on 12.04 through to 14.04).
sudo apt-get install python-pip
Your pip is installed in /home/nyzlfc/.local/bin, which is not in the sudo path and with a good reason. Just add ~/.local/bin to your path and step away of sudo as it's unnecessary.
Hi everyone! I’m studying python by myself and I discovered a problem, during the installation of Python 3.10.2 the pip.exe wasn’t downloaded, I don’t know why but I need a hand on this, please! (I’m programming with a Mac :) Thanks for reading!
One of three things will likely fix it:
In case
python3-pipdid not install correctly, re-install it:This is used for Debian-based distros like Ubuntu, Mint:
sudo apt-get remove python3-pip; sudo apt-get install python3-pipIf using Fedora, CentOS, RHEL, please use:
sudo dnf reinstall python3-pipTry using the command
python3-pipinstead (works on Fedora; I don't have a copy of Kubuntu to try it on).Just a wild guess...check
pip --version. There is a slight possibility that after installingpython3-pipthe newpipwould replace the oldpip(perhaps viaalternatives?)
EDIT
Now that the output of dpkg -L python3-pip has been added to the question, I can provide the answer.
The correct command name to use is: pip-3.2.
I ran into this problem and found the solution. The python3-pip package installed a pip-3.2 binary.
Executing pip-3.2 --version shows:
pip 1.1 from /usr/lib/python3/dist-packages (python 3.2)
Whereas python3-pip gives the command not found message.
I tested it on a "clean" download from here: https://sourceforge.net/projects/rpiqemuwindows/
I checked for pip-3.2 before installing python3-pip and then after.
just installed VScode on Mx-linux and followed the steps to create an environment - i followed the offiial manpages - here:
Creating environments
https://code.visualstudio.com/docs/python/environments
Using the Create Environment command
From within VS Code, you can create local environments, using virtual environments or Anaconda, by opening the Command Palette (Ctrl+Shift+P), start typing the Python: Create Environment command to search, and then select the command.
The command presents a list of environment types: Venv or Conda.
📷
If you are creating an environment using Venv, the command presents a list of interpreters that can be used as a base for the new virtual environment.
all went nicely - but afterwards i just went into some issues: see here
Command 'pip' not found, but can be installed with: sudo apt install python-pip martin@mx:~/Desktop/dev $ pip install pandas Command 'pip' not found, but can be installed with: sudo apt install python-pip martin@mx:~/Desktop/dev $
well i guess that i have to take care - here- I need to install pip