Python模块安装方式

一、方法1: 单文件模块
直接把文件拷贝到 $python_dir/lib/python3.4/site-packages/

二、方法2: 多文件模块,带setup.py

下载模块包,进行解压,进入模块文件夹,执行:
python setup.py install

三、 方法3:easy_install 方式 

安裝:easy_install PackageName

更新:easy_install -U PackageName

移除:easy_install -m PackageName

帮助:easy_install --showhelp

四、 方法4:pip 方式 

安裝:pip install PackageName

更新:pip install -U PackageName

移除:pip uninstall PackageName

搜索:pip search PackageName

帮助:pip help


 

原文地址:https://www.cnblogs.com/Monitor/p/4022601.html