The current recommendation is to use python -m pip, where python is the version of you would like to use. This is the recommendation because it works across all versions of Python, and in all forms of virtualenv. For example:
# The system default python: $ python -m pip install fish # A virtualenv's python: $ .env/bin/python -m pip install fish # A specific version of python: $ python-3.6 -m pip install fish Since version 0.8, Pip supports pip-{version}. You can use it the same as easy_install-{version}:
0 Comments
Had the same problem. Installing python from the source helped.
# Remove existing python 3.6 if installed with apt $ sudo apt-get autoremove python3.6 # Get the source $ wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz $ tar xvf Python-3.6.1.tar.xz $ cd Python-3.6.1 # Configure and install $ sudo ./configure $ sudo make altinstall # Success! $ pip3.6 -V pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6) I particulary found that really interesting... have a look on stackoverflow.
|
Archives
January 2021
Categories |