pip’s documentation lists the supported mechanisms to install it: https://pip.pypa.io/en/stable/installation/#supported-methods
It is generally recommended to avoid installing pip on the OS-provided python
commands, and to install Python via the https://python.org installers or using something like Homebrew or pyenv.
Python 3.4+ will have ensurepip
, so if you’re unable to run python3 -m pip
— run python3 -m ensurepip
and it’ll install pip for you.
If you’re using an end-of-life version of Python, you can use get-pip.py
instead.
Old answer (outdated, and results in a broken installation)
easy_install pip
If you need admin privileges to run this, try:
sudo easy_install pip
Related Posts:
- How do I install pip on macOS or OS X?
- bash: pip: command not found
- ImportError: No module named pip
- ImportError: No module named pip
- How do I install pip on macOS or OS X?
- How can I install pip on Windows?
- ImportError: No module named tensorflow
- Could not install packages due to an EnvironmentError:
- “Defaulting to user installation because normal site-packages is not writeable” python message
- import opencv vs import cv2
- bash: pip: command not found
- ModuleNotFoundError: No module named ‘matplotlib’
- Why does “pip install” inside Python raise a SyntaxError?
- How to change pip installation path
- Could not install packages due to an EnvironmentError: [Errno 13]
- Failed building wheel for Twisted in Windows 10 python 3
- How can I install the Beautiful Soup module on the Mac?
- Install pip for python 3.5
- How do I update\upgrade pip itself from inside my virtual environment?
- How to install pip with Python 3?
- pip not recognised as an internal or external command
- bash: pip: command not found
- How to uninstall a package installed with pip install –user
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- Where is BeautifulSoup4 hiding?
- ImportError: No module named pandas. Pandas installed pip
- Where does pip install its packages?
- Where does pip install its packages?
- How to install python3 version of package via pip on Ubuntu?
- Could not find a version that satisfies the requirement tensorflow
- Could not find a version that satisfies the requirement tensorflow
- How to install pytorch in Anaconda with conda or pip?
- Python3: ImportError: No module named ‘_ctypes’ when using Value from module multiprocessing
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- Configuring so that pip install can work from github
- pip or pip3 to install packages for Python 3?
- Error after upgrading pip: cannot import name ‘main’
- filename.whl is not supported wheel on this platform
- socket.error: [Errno 48] Address already in use
- socket.error: [Errno 48] Address already in use
- Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
- Permission denied error by installing matplotlib
- Updating matplotlib in virtualenv with pip
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- filename.whl is not a supported wheel on this platform
- How to install pip3 on Windows?
- “ImportError: no module named ‘requests'” after installing with pip
- How do I install the yaml package for Python?
- How can I install Python’s pip3 on my Mac?
- Could not find a version that satisfies the requirement
- No module named pkg_resources
- What is the purpose of “pip install –user …”?
- How to upgrade all Python packages with pip
- How do I remove all packages installed by PIP?
- What is the easiest way to remove all packages installed by pip?
- How to get pip to work behind a proxy server
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- How to install multiple python packages at once using pip
- How are Pipfile and Pipfile.lock used?
- Checking whether pip is installed?
- AttributeError: Module Pip has no attribute ‘main’
- pg_config executable not found
- from PIL import Image – ImportError: No module named PIL
- ‘Pip’ is Not Recognized as an Internal or External Command windows 10 CMD
- How can I install Python’s pip3 on my Mac?
- Pyspark: Exception: Java gateway process exited before sending the driver its port number
- Virtualenv Command Not Found
- ‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]
- How do I install a pip package globally instead of locally?
- “ImportError: No module named site” on Windows
- python pip on Windows – command ‘cl.exe’ failed
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- pip: no module named _internal
- ImportError: No module named ‘yaml’
- tar: Unrecognized archive format error when trying to unpack flower_photos.tgz, TF tutorials on OSX
- How to run Pip commands from CMD
- How to install PyGame on Python 3.4?
- Django Rest Framework — no module named rest_framework
- python NameError: name ‘file’ is not defined
- boto3 python 2.7 ImportError: No module named boto3 USER_BASE USER_SITE site packages doesn’t exist
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- ImportError: No module named Crypto.Cipher
- How to Install pip for python 3.7 on Ubuntu 18?
- Python can’t find module NLTK
- Why am I getting ImportError: No module named pip ‘ right after installing pip?
- How do I update a Python package?
- Python official installer missing python27.dll
- ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
- How to install pip for Python 3 on Mac OS X?
- Tkinter error: Couldn’t recognize data in image file
- How to install Openpyxl with pip
- Installing scipy for python 2.7
- Install py2exe for python 2.7 over pip: this package requires Python 3.3 or later
- How to resolve “ImportError: DLL load failed:” on Python?
- How to install PyQt4 on Windows using pip?
- Homebrew brew doctor warning about /Library/Frameworks/Python.framework, even with brew’s Python installed
- How to install PyQt4 on Windows using pip?
- Pip: could not find a version. No matching distribution found
- File “/usr/bin/pip”, line 9, in
from pip import main ImportError: cannot import name main - How do I list the files associated with a Python package installed using pip or easy_install?