Python安装第三方模块
2018-02-19 13:15
393 查看
1、安装whl模块
通过 "pip list" 命令查看已安装的模块
#安装
(1)、将待安装的whl模块整理好安装顺序保存到 "requirements.txt",然后执行 "pip install -r requirements.txt" 进行快速安装。
(2)、执行 pip install xxx.whl 进行单个whl的安装
#whl安装时提示 "*** is not a supported wheel on this platform"
在Python中执行以下代码,查看支持的whl命名:import pip
print(pip.pep425tags.get_supported())
打印出tuple的List,需要将whl文件重命名为受支持的命名。如Python 3.5安装cx_Oralce时: cx_Oracle-6.1-cp35-cp35m-win_amd64.whl 改名为 cx_Oracle-6.1-cp35-none-win_amd64.whl
2、源码安装
使用pip install -e 命令。第三个参数为源码所在路径,如 "./networkx-2.1"pip install -e ./networkx-2.1
通过 "pip list" 命令查看已安装的模块
#安装
(1)、将待安装的whl模块整理好安装顺序保存到 "requirements.txt",然后执行 "pip install -r requirements.txt" 进行快速安装。
(2)、执行 pip install xxx.whl 进行单个whl的安装
#whl安装时提示 "*** is not a supported wheel on this platform"
在Python中执行以下代码,查看支持的whl命名:import pip
print(pip.pep425tags.get_supported())
打印出tuple的List,需要将whl文件重命名为受支持的命名。如Python 3.5安装cx_Oralce时: cx_Oracle-6.1-cp35-cp35m-win_amd64.whl 改名为 cx_Oracle-6.1-cp35-none-win_amd64.whl
2、源码安装
使用pip install -e 命令。第三个参数为源码所在路径,如 "./networkx-2.1"pip install -e ./networkx-2.1
相关文章推荐
- Python学习笔记011_模块_标准库_第三方库的安装
- Python 第三方模块的快速安装
- Python编程:pip安装第三方模块
- python 安装第三方模块
- python安装第三方模块(windows环境)
- pyCharm中安装第三方python模块(比如bs4)
- python安装第三方包之后无法导入相应模块(一个容易忽略的bug)
- 【总结】Python中第三方的库(library)、模块(module),包(package)的安装方法
- 【Python】[模块]使用模块,安装第三方模块
- python 第三方模块MySQLdb安装
- python 如何安装第三方模块module
- python在windows下安装第三方模块方法
- Python:Pycharm下无法导入安装好的第三方模块?
- Python在安装第三方模块遇到的问题及解决办法
- Python笔记6——模块的使用和路径,别名,作用域,安装第三方库
- 关于Python pip 安装第三方模块失败
- Python中第三方的库(library)、模块(module),包(package)的安装方法以及ImportError: No module named
- python 安装第三方模块
- python 安装第三方模块的常用方法