Install pip command in Mint

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel9999
    New Member
    • Jul 2019
    • 15

    Install pip command in Mint

    I have to install the Django package to my mint distribution. I want to accomplish this by using pip command but can not find the pip command. How can I install the pip command ? Thanks
  • SioSio
    Contributor
    • Dec 2019
    • 272

    #2
    pip is a command of Python2, pip3 is a command of Python3.
    Install as follows
    pip:
    Code:
    $ sudo apt install python-pip
    pip3:
    Code:
    $ sudo apt install python3-pip
    If that doesn't work, use the curl command to install "get-pip.py".
    Code:
    $ sudo apt install curl
    Once installed, get the "get-pip.py" file as follows:
    Code:
    $ curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
    Run "get-pip.py" with python.
    Code:
    $ sudo python get-pip.py
    Check if pip is installed.
    Code:
    $ pip --version
    To install pip3, update the apt command, then upgrade and then install pip3.
    Code:
    $ sudo apt update
    $ sudo apt upgrade
    $ sudo apt install python3-pip
    Check if pip3 is installed.
    Code:
    $ pip3 --version

    Comment

    • hussainmujtaba
      New Member
      • Apr 2020
      • 13

      #3
      Before you start to install PIP on Linux Mint 19. You must have a non-root user account on your server with sudo privileges.
      To install pip run the following code
      Code:
      sudo apt install python3-pip
      to confirm its installation run this code
      Code:
      pip3 --version
      The output should be something like this
      pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

      Comment

      Working...