Get the App
SLTechnology News&Howtos  ›  Database  › 

What is the installation process of the Python software management tool pip

Shulou Source: shulou.com Published: 2022-05-31 16:57:18 09月19日 Update

In this issue, the editor will bring you about the installation process of Python software management tool pip. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.

Because of the project, I need to study python deeply. Back-end programs rely on various software packages, such as MySQLdb. Beginners may not be familiar with how to quickly install the required python packages. Commonly used python package installation and management are easy_install, setuptools, pip,distribute.

This article introduces pip--- "A tool for installing and managing Python packages."

Install pip

First, get the script get-pip.py.

Wget https://bootstrap.pypa.io/get-pip.py

Python get-pip.py

Note:

Get-pip.py will help you install setuptools, and if you have already installed it, it will run the upgrade command:

Pip install-U setuptools

Upgrade pip

Pip install-U pip

Install the python package

Pip install SomePackage # download the latest version if you do not specify a version

Pip install SomePackage==1.0.4 # download the specified version

For example, download and install MySQLdb

Root@rac3:~/scripts# > pip install MySQL-python

Collecting MySQL-python

/ usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.

SNIMissingWarning

/ usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

InsecurePlatformWarning

Downloading MySQL-python-1.2.5.zip (108kB)

100% | ██ | 110kB 354kB/s

Building wheels for collected packages: MySQL-python

Running setup.py bdist_wheel for MySQL-python... Done

Stored in directory: / root/.cache/pip/wheels/8c/0d/11/d654cad764b92636ce047897dd2b9e1b0cd76c22f813c5851a

Successfully built MySQL-python

Installing collected packages: MySQL-python

Successfully installed MySQL-python-1.2.5

This is what the installation process of the Python software management tool pip shared by Xiaobian is like. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Software management versions tools management tools process content analysis upgrade professional small and medium rich content reasons commands that is commonly used articles novice more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Linux Docker Microsoft