Python模块常用的安装方式
2013-12-18 12:25
323 查看
Python模块的安装,我一般使用yum工具,但很多模块不提供这种安装方式,下面,总结一下python模块的安装方式
1、单文件模块
直接考到Lib目录下面
2、带有setup.py的模块
运行python setup.py install
3、egg文件
得先安装setup_tools https://pypi.python.org/pypi/setuptools#downloads (这是个神器)
下载之后执行python ez_setup.py即可安装setup_tools
然后再easy_install *.egg (win中,这个命令在Python27\Scripts目录下)
4、setup_tools安装
即使用easy_install安装,这种安装方式比较爽,跟yum和node.js的npm差不多,只需要知道模块名就可以
运行:easy_install
模块名 执行安装
easy_install -m 模块名 卸载
它事实上是下载egg然后自动执行了【3】
扩展阅读:《可爱的
Python: 使用 setuptools 孵化 Python egg》http://www.ibm.com/developerworks/cn/linux/l-cppeak3.html
1、单文件模块
直接考到Lib目录下面
2、带有setup.py的模块
运行python setup.py install
3、egg文件
得先安装setup_tools https://pypi.python.org/pypi/setuptools#downloads (这是个神器)
下载之后执行python ez_setup.py即可安装setup_tools
然后再easy_install *.egg (win中,这个命令在Python27\Scripts目录下)
4、setup_tools安装
即使用easy_install安装,这种安装方式比较爽,跟yum和node.js的npm差不多,只需要知道模块名就可以
运行:easy_install
模块名 执行安装
easy_install -m 模块名 卸载
它事实上是下载egg然后自动执行了【3】
扩展阅读:《可爱的
Python: 使用 setuptools 孵化 Python egg》http://www.ibm.com/developerworks/cn/linux/l-cppeak3.html
相关文章推荐
- Python模块常用的几种安装方式
- 怎么安装python模块,如何安装python模块,常用安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- python模块的常用安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- Python模块常用的几种安装方式
- 安装python模块,常用安装方式
- Python模块常用的几种安装方式