Proper way to install pip on Ubuntu

前端 未结 8 1368
死守一世寂寞
死守一世寂寞 2021-01-31 08:34

I\'m trying to install the latest version of pip (currently 8.1.2) on the official ubuntu/trusty64 Vagrant box. The box comes with Python 2.7.6 and 3.4.3 pre-installed with apt-

相关标签:
8条回答
  • 2021-01-31 08:59
    • sudo apt-get update;
    • sudo apt-get install python-pip;

    Once the installation is complete, verify the installation by checking the pip version:

    • pip --version;
    0 讨论(0)
  • 2021-01-31 09:01

    if it is outdated you can use the following command: sudo pip install --upgrade pip

    0 讨论(0)
  • 2021-01-31 09:03

    Try download install package from https://pypi.python.org/pypi/pip#downloads and use python setup.py install

    0 讨论(0)
  • 2021-01-31 09:05

    If you are using Ubuntu OS with Python2.7 You can follow below steps

    apt-get update

    apt-get upgrade

    apt-get install python-pip

    To check install pip version

    pip --version

    OR

    If you are using Ubuntu OS with Python3 You can follow below steps

    apt-get update

    apt-get upgrade

    apt-get install python3-pip

    To check install pip3 version

    pip3 --version

    0 讨论(0)
  • 2021-01-31 09:06

    I believe that you can install it on Ubuntu with

    sudo apt-get install python-pip
    

    or

    sudo apt-get install python3-pip
    

    for Python 3. Sure, it's an older version but its functionality is there.

    0 讨论(0)
  • 2021-01-31 09:14
                  Install in the ubuntu software,Python,django and pip
    

    sudo apt update sudo apt install python2 curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py sudo python2 get-pip.py sudo apt-get install python3-distutils

    0 讨论(0)
提交回复
热议问题