kdadive.blogg.se

Python2 pip
Python2 pip






python2 pip

  • Open a terminal in Ubuntu, run the command cd ~ to go to the user home directory.
  • Pip 20.3.4 from /home/jerry/.local/lib/python2.7/site-packages/pip (python 2.7)
  • First, run the command python2 -m pip –version to get the Python2 pip installed location.
  • We can add the pip executable file path to the system environment PATH variable’s value and then you can call it directly.
  • If you want to invoke the Python2 installed pip command, you can run the command python2 -m pip, this command will run the pip command as a python2 module.
  • You can read the article How To Install The Latest PIP Version And Ipykernel For Python 2.7 to learn how to install pip2 for Python 2.7.
  • After that, you can run the command python2 –version to check whether python2 has been installed successfully or not.
  • Libpython2.7-stdlib python2 python2-minimal python2.7Ġ upgraded, 7 newly installed, 0 to remove and 168 not upgraded.Īfter this operation, 16.5 MB of additional disk space will be used.

    python2 pip

    The following NEW packages will be installed: Python2-doc python-tk python2.7-doc binfmt-support Libpython2.7-stdlib python2-minimal python2.7 The following additional packages will be installed: Run the command sudo apt install python2 to install python2 on Ubuntu.$ sudo apt updateĢ03 packages can be upgraded. Run the command sudo apt update to update the apt packages.'universe' distribution component is already enabled for all sources. Run the command sudo add-apt-repository universe to set up the universe repository.

    python2 pip

    Ubuntu 20.04 repositories do not contain Python2, so we should install Python 2 in Ubuntu first.








    Python2 pip