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