In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.