I had the same problem.
My solution:
For Python 3
sudo apt-get install python3-pip
For Python 2
sudo apt-get install python-pip
More Related Contents:
- How do I install pip on macOS or OS X?
- Getting “Permission Denied” when running pip as root on my Mac
- pip installing in global site-packages instead of virtualenv
- bash: pip: command not found
- pip or pip3 to install packages for Python 3?
- How to install pip for Python 3 on Mac OS X?
- pip is not able to install packages correctly: Permission denied error [duplicate]
- Can’t install psycopg2 package through pip install on MacOS
- Could not install packages due to an EnvironmentError: [Errno 13]
- Can’t install pygame with pip as there is an error whilst runningvsetup.py bdist_wheel for pygame [duplicate]
- pip installs packages successfully, but executables not found from command line
- ‘Library not loaded: @rpath/libcudart.7.5.dylib’ TensorFlow Error on Mac
- Can’t install PIL after Mac OS X 10.9
- pip installation /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
- How to uninstall pip on OSX?
- “SSL certificate verify failed” using pip to install packages
- Can’t install Tensorflow Mac
- pip3: bad interpreter: No such file or directory
- Broken Pipe error when using pip to install pycrypto on Mac OS X
- Pip suddenly using wrong version of Python
- Installing Python packages from local file system folder to virtualenv with pip
- Using pip behind a proxy with CNTLM
- How to install psycopg2 with “pip” on Python?
- How to install 2 Anacondas (Python 2 and 3) on Mac OS
- How to Install and Use TkDnD with Python Tkinter on OSX?
- sudo pip install VS pip install –user
- Python PIP Install throws TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’
- How do I install Python packages in Google’s Colab?
- Stop pip from failing on single package when installing with requirements.txt
- Copy complete virtualenv to another pc