【Python】pip+easy_install+win8
2015-11-03 本文已影响198人
誓词倾城
简述:
Python 扩展包 pip,easy_install 主要目的简化第三方扩展包的安装流程
Easily download, build, install, upgrade, and uninstall Python packages
两者的区别并不是特别的明显:pip 算是 easy_install 的升级版本,因为目前许多扩展包需要easy_install 安装,所以 pip 并不能完全取代 easy_install。
两者可以结合使用,本文主要讲述win8环境下的pip、easy_install安装方法。
easy_install 安装
1.下载页面:https://pypi.python.org/pypi/setuptools/
2.找到 ez_setup.py进行下载
直接点开文件,右键另存为就可以下载

3.命令行找到并运行ez_setup.py


4.找到python安装目录中生成的scripts目录,会发现里面存在easy_install.exe

5.配置环境变量

6.测试,执行 easy_install --help,如下图所示,安装easy_install成功

pip安装
1.由于安装了easy_install,所以安装pip直接通过命令行就可以完成安装
命令行执行 > easy_install pip

2.安装完成后就可以直接使用了