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_
- 下一篇: python numpy.array_p