archer05 发表于 2015-12-2 13:02:59

python 安装pip和easy installers和whl文件

  http://blog.iyunv.com/uid-12014716-id-3859827.html
  
  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 (推荐)
  
  安装whl文件pip install SomePackage-1.0-py2.py3-none-any.whl
  
  安装easy_install、pip:
http://heipark.iyunv.com/blog/1916758
页: [1]
查看完整版本: python 安装pip和easy installers和whl文件