python插件安装包_python 离线安装插件包
利用 pip install 包名.wql 安裝插件包
1、首先安裝pip
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
cd pip1.5.5
python setup.py install
[[email?protected] wangbin1]# /usr/local/python2.7/bin/pip
Usage:
pip [options]
Commands:
install???????????????????? Install packages.
uninstall?????????????????? Uninstall packages.
freeze????????????????????? Output installed packages in requirements format.
list??????????????????????? List installed packages.
show??????????????????????? Show information about installed packages.
search????????????????????? Search PyPI for packages.
wheel?????????????????????? Build wheels from your requirements.
安裝成功
2、安裝whl 程序包
2.1 首先 pip install wheel
[[email?protected] pip-1.5.5]# /usr/local/python2.7/bin/pip install wheel-0.24.0-py2.py3-none-any.whl
Unpacking ./wheel-0.24.0-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel
Cleaning up...
2.2 然后 pip install 程序包.wheel
比如 安裝? python elasticsearch
[[email?protected] pip-1.5.5]# /usr/local/python2.7/bin/pip install urllib3-1.10.4-py2-none-any.whl
Unpacking ./urllib3-1.10.4-py2-none-any.whl
Installing collected packages: urllib3
Successfully installed urllib3
Cleaning up...
[[email?protected] pip-1.5.5]#
[[email?protected] pip-1.5.5]# /usr/local/python2.7/bin/pip install elasticsearch-1.5.0-py2.py3-none-any.whl
Unpacking ./elasticsearch-1.5.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): urllib3>=1.8,<2.0 in /usr/local/python2.7/lib/python2.7/site-packages (from elasticsearch==1.5.0)
Installing collected packages: elasticsearch
Successfully installed elasticsearch
Cleaning up...
whl 包 到官網下載即可
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的python插件安装包_python 离线安装插件包的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python 网页登录selenium_
- 下一篇: 卡尔曼滤波matlab_卡尔曼滤波(ka