3

How to Install Python Pip on Ubuntu

 2 years ago
source link: https://www.laravelcode.com/post/how-to-install-python-pip-on-ubuntu
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to Install Python Pip on Ubuntu

  631 views

  7 months ago

Python

Pip is Python package manager command line tools that makes python packages easy to download from Python Package Index (PyPI).
In the sense Pip is like package manager as Ubuntu has apt and programming languages like PHP has composer, node.js has npm.

This article is intended to guide you installing Pip on Ubuntu system.
If you want to download pip for Python3, then you have to be installed Python3 and in the way, also Pip for Python2.
To check which version of Python you have installed, use following command.

python --version
python2 --version
python3 --version

Note: You need to be logged in as root user with sudo privileges.

1. Open your terminal, by pressing shortcut key CTRL + ALT + T or go to menu and click Terminal.

2. Update your package list by following command:

sudo apt-get update

3. If you want to install pip for Python3 run following command,

sudo apt-get install python3-pip

For Python2, run command

sudo apt-get install python-pip

4. Check Pip for Python3 version

pip3 --version
pip3 -V

or Pip for Python2 version

pip --version
pip -V

Some important Pip commands.

Note: for Pip for Python2 use pip word instead of pip3

1. To get all your installed packages, run command

pip3 list

2. Search for packages

pip3 <package-keyword>

3. Installing packages from Pip.

pip3 install <package-name>

4. Uninstalling package commmand.

pip3 uninstall <package-name>

5. To get more option, run command

pip3 --help

Conclusion

So this way, you can manage your python packages. You can visit pip documentation site to get more information.

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK