pip的安装可参考:http://docs.python-guide.org/en/latest/starting/install/win/
以下部分说明了安装过程
Setuptools + Pip
The most crucial third-party Python software of all is Setuptools, which extends the packaging and installation facilities provided by the distutils in the standard library. Once you add Setuptools to your Python system you can download and install any compliant Python software product with a single command. It also enables you to add this network installation capability to your own Python software with very little work.
To obtain the latest version of Setuptools for Windows, run the python script available here: ez_setup.py
You’ll now have a new command available to you: easy_install. It is considered by many to be deprecated, so we will install its replacement: pip. Pip allows for uninstallation of packages, and is actively maintained, unlike easy_install.
To install pip, run the python script available here: get-pip.py
以windows为例
1.下载ez_setup.py文件安装setuptools
执行:python $path\ez_setup.py,执行完后可以在python的Scripts目录下看到安装的文件
安装过程中可能会出现以下错误:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
解决办法:<!--[endif]-->
注释掉python安装目录lib下的 mimetypes.py中 ctype = ctype.encode(default_encoding) 那部分代码,重新执行python ez_install.py
#try: #ctype = ctype.encode(default_encoding) # omit in 3.x! #except UnicodeEncodeError: #pass
注意:Pip依赖setuptools,如果没有安装setuptools就安装pip会报错提示setuptools或者distribute没有安装
2.下载get-pip.py文件
执行:python $path\get-pip.py
安装完成后可以看到 Successfully installed pip
3.添加到系统path中
查看目录可以看到相应的pip文件在python的Scripts目录下, 然后将该路径添加到系统Path中:D:\Python27\Scripts
4 .pip信息查询
在控制台执行:pip -V 可以看到pip的相关信息
pip 1.4.1 from d:\program_files\python27\lib\site-packages (python 2.7)
相关推荐
该资源主要是Python的PIP安装软件,主要包括四个文件: python-2.7.8.amd64.msi,这个你可以在官网下载适合自己的版本。 另一个是pip-Win_1.7.exe软件,但强烈推荐大家安装完Python环境后,双击get-pip.py软件即可...
pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。 pip检测更新 命令:pip list –outdated pip升级包 命令:pip install –upgrade packagename pip卸载包 命令:pip ...
Python3 安装 mpl_finance教程,然后附上代码验证是否成功安装。
在使用python pip 安装各种插件和包的时候,经常链接的是外网,所以下载速度特别慢。
python pip 安装插件超快 python pip 安装插件慢吗,不存在的,双击安装 平均下载速度 3m,简直是快到飞起!
python pip安装模块提示错误failed to create process 原因: 报这个错误的原因,是因为python的目录名称或位置发生改动。 解决办法: 1.找到修改python所在的目录,打开scripts目录,如下图找到修改python所在的...
Python2.7.8 安装pip 只需 5步 轻松搞定(亲测)
win10 python-pip安装,可参考博客http://blog.csdn.net/lxfHaHaHa/article/details/78937457
主要介绍了Python pip安装第三方库实现过程解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
ipython-pip-支持用 pip 来安装 IPython notebook 的扩展
python2.7.6安装pip
主要介绍了Python pip安装lxml出错的问题解决办法的相关资料,需要的朋友可以参考下
一个易于使用的Python PIP包更新程序
python pip3报没安装ssl module的解决办法
下载get-pip.py后,在已安装python的机器上执行python get-pip.py, 即可安装pip
pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能
windows7 下多版本python与pip安装和pip使用。包括python2和python3下安装使用pip
python包管理工具pip安装文件
PIPWeb:一个免费和开源的GUI(Web)Python PIP安装程序