凌的博客

您现在的位置是: 首页 > 学无止境 > python > 

python

python Windows环境下安装pip

2015-05-17 python 842
1.在以下地址下载最新的PIP安装文件:http://pypi.python.org/pypi/pip#downloads 2.解压安装 3.下载Windows的easy installer,然后安装:http://pypi.python.org/pypi/setuptools 4.安装setuptools工具

1.在以下地址下载最新的PIP安装文件:http://pypi.python.org/pypi/pip#downloads

2.解压安装

3.下载Windows的easy installer,然后安装:http://pypi.python.org/pypi/setuptools

4.安装setuptools工具

5.命令行工具cd切换到pip的目录,找到setup.py文件,然后输入python setup.py install,运行即可(之所以能运行这步,是因为之前安装的setuptools工具,以后就可以随意安装python的库了,只要找对setup.py文件的路径,运行上述命令,就可以方便的安装了)

6.把python的安装路径添加到环境变量path中,例如G:\python2.6\Scripts

7.完成!


另:安装完pip和easy_installer工具后,以后再安装python其他库就方便了

例如:
easy_install redis

    or

pip install redis (推荐)




安装easy_install、pip:

http://heipark.iteye.com/blog/1916758

文章评论

0条评论