Common module _python External module installation

Source: Internet
Author: User

Official recommended Standard installation method

Manual:

First step, Python step.py build

Step two, Python step.py install

Networking downloads Automatically:

Pip Install xxx #python2

PIP3 Install XXX #python3

#联网自动查找下载前, Pip will be in the local related path to find whether, not only to find online.

----------------------------------------------Internet Reference----------------------------------------

# # for Linux # #
sudo pip install sth
# or explicit version
sudo pip2 install STH
sudo pip3 install STH
sudo python2-m pip install sth
sudo/path/to/python-m pip Install Sth

# # for Windows NT # #

# If only Python2 is installed
Pip Install Sth
# If you have Python3 installed, you need to specify the PIP version
Py-2-m pip install Sth
Py-3-m pip install Sth

Johnny Wong
Links: https://www.zhihu.com/question/21653286/answer/96834584
Source: Know
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

---------------------------------------------------------------------------------------------------

Uninstall method: Pip uninstall xx #模块名pip3 uninstall XX

Lead Depth:

Python module auto Find path view mode

>>>: Import sys

>>>: Sys.path

Python module auto Find path increment, delete

Increase

>>>: Sys.path.append ('/XX/YY/CCC ') #建议使用绝对路径

By deleting

>>>: Sys.path.pop ( -1) #删除最后一个路径

Common module _python External module installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.