By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,022 Members | 1,327 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,022 IT Pros & Developers. It's quick & easy.

Install pip command in Mint

P: 15
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
Apr 13 '20 #1
Share this Question
Share on Google+
2 Replies


100+
P: 134
pip is a command of Python2, pip3 is a command of Python3.
Install as follows
pip:
Expand|Select|Wrap|Line Numbers
  1. $ sudo apt install python-pip
pip3:
Expand|Select|Wrap|Line Numbers
  1. $ sudo apt install python3-pip
If that doesn't work, use the curl command to install "get-pip.py".
Expand|Select|Wrap|Line Numbers
  1. $ sudo apt install curl
Once installed, get the "get-pip.py" file as follows:
Expand|Select|Wrap|Line Numbers
  1. $ curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
Run "get-pip.py" with python.
Expand|Select|Wrap|Line Numbers
  1. $ sudo python get-pip.py
Check if pip is installed.
Expand|Select|Wrap|Line Numbers
  1. $ pip --version
To install pip3, update the apt command, then upgrade and then install pip3.
Expand|Select|Wrap|Line Numbers
  1. $ sudo apt update
  2. $ sudo apt upgrade
  3. $ sudo apt install python3-pip
Check if pip3 is installed.
Expand|Select|Wrap|Line Numbers
  1. $ pip3 --version
Apr 14 '20 #2

P: 8
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
Expand|Select|Wrap|Line Numbers
  1. sudo apt install python3-pip
to confirm its installation run this code
Expand|Select|Wrap|Line Numbers
  1. pip3 --version
The output should be something like this
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
Apr 22 '20 #3

Post your reply

Sign in to post your reply or Sign up for a free account.