win10下python中的easy_install和pip的安装方法

来源:互联网 发布:中国联通网络测速 编辑:程序博客网 时间:2024/04/30 23:31

转载于:http://jingyan.baidu.com/article/e3c78d64a06dc93c4c85f53d.html

easy_insall的作用和perl中的cpan,ruby中的gem类似,都提供了在线一键安装模块的傻瓜方便方式,而pip是easy_install的改进版,提供更好的提示信息,删除package等功能。老版本的python中只有easy_install,没有pip。

下面介绍win10下python中的easy_install和pip的安装方法之一。

step 1: 下载ez_setup-0.9,地址

https://pypi.python.org/packages/ba/2c/743df41bd6b3298706dfe91b0c7ecdc47f2dc1a3104abeb6e9aa4a45fa5d/ez_setup-0.9.tar.gz

step 2:  双击文件夹中的ez_setup.py,将自动进行安装。

step 3:  在python目录下将生成scripts文件夹,里面有easy_install.

step 4:  在scripts文件夹下,按住shift键,右击鼠标右键,选择“在此处打开命令窗口”,在命令行中输入“easy_install.exe pip”,安装pip。

step 5:  在命令行窗口输入 “pip list”将会看到python中已安装的模块。




阅读全文
0 0