[Python] easy_install 和 pip 在windows 下的安装
2014-09-15 23:37
1216 查看
PIP安装方法
1. 安装setuptools
PIP的安装需要依赖于setuptools,setuptools可以很方便得下载,构建,安装,升级和卸载python包。这里easy_install通过脚本安装非常容易下载ez_setup.py:https://pypi.python.org/pypi/setuptools#windows-7-or-graphical-install
切换到脚本所在目录,执行python ez_setup.py
参考链接:https://pypi.python.org/pypi/setuptools#windows-7-or-graphical-install
2. 安装pip
pip是一个非常有用的python安装包管理工具,它有两种安装方法。
1. 通过官方脚本安装(推荐)
参考这里:https://pip.pypa.io/en/latest/installing.html#install-pip
2. 通过源码安装:
下载源码tar包:https://pypi.python.org/pypi/pip#downloads解压缩
进入解压后目录,执行命令:python setup.py install
3. pip安装过程中可能遇到的问题,总结如下:
1. 通过脚本get-pip.py可能会遇到如下问题Solution1:
pip.log中发现这是一个ssl有关的问题,workaround方法是卸载新版本pip:pip uninstall pip用之前的旧版本pip: easy_install
pip==1.2.1
有人认为是在64位系统中使用32位python造成的,需要源码安装64位python,这个我没试过。
参考链接:http://stackoverflow.com/questions/21294997/pip-connection-failure-cannot-fetch-index-base-url-http-pypi-python-org-simpl
Solution2:
升级Python到2.7. 用administrator权限安装pip。运行pip install bottle确认可以安装python包了。参考链接: http://www.newdavesite.com/view/15839375
相关文章推荐
- Python - Windows下安装easy_install, pip 及whl文件安装方法
- Windows安装Python、pip、easy_install的方法
- Windows下Python、Pydev、easy_install、pip、Numpy、Scipy安装
- windows下python安装easy_install和pip
- python3学习(一) windows下面安装easy_install和pip教程
- Windows下python安装easy_install和pip&安装requests和BeautifulSoup库
- Windows安装Python、pip、easy_install
- python3.4学习笔记(十六) windows下面安装easy_install和pip教程
- windows下安装python 的 easy_install 和pip
- python3.4学习笔记(十六) windows下面安装easy_install和pip教程
- Centos下安装pip,easy_install等python扩展库,centos下的
- linux下,Python 多版本共存,及Pip,Easy_install 安装扩展包
- windows下安装easy_install, pip 及whl文件安装方法
- windows下安装easy_install, pip 及whl文件安装方法
- python初准备:安装easy_install和pip
- windows下安装pip、easy_install下出现编码问题(转)
- python 安装easy_install和pip
- windows下安装pip和easy_install
- windows安装pip 和easy_install
- python安装easy_install与pip (win7 64bit)