AYE89

coding & learning

导航

windows下面安装easy_install和pip教程

Posted on 2017-08-08 15:18  AYE89  阅读(389)  评论(0编辑  收藏  举报

方便安装whl:安装完成后,可以使用pip install   xxx.whl 安装一个python轮子

python扩展库的路径:Python\Python36\Lib\site-packages\ 

=====================================================================

 

windows下面安装easy_install和pip教程

easy_install和pip都是用来下载安装Python一个公共资源库PyPI的相关资源包的

首先安装easy_install

下载地址:https://pypi.python.org/pypi/ez_setup

解压,安装方法cmd进入到对应目录下,执行命令:python ez_setup.py
------------------------------------
C:\Users\Administrator>d:

D:\>cd D:\download\ez_setup-0.9

D:\download\ez_setup-0.9>python ez_setup.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.1
4.tar.gz
Extracting in C:\Users\ADMINI~1\AppData\Local\Temp\tmpufdlxztc
Now working in C:\Users\ADMINI~1\AppData\Local\Temp\tmpufdlxztc\distribute-0.6.1
4
Installing Distribute
creating build
creating build\src
.....

============================================

安装好easy_install 之后 再安装pip

下载地址:https://pypi.python.org/pypi/pip

解压,安装命令:python setup.py install
--------------------------------------------
D:\download\ez_setup-0.9>cd D:\download\pip-7.1.0

D:\download\pip-7.1.0>python setup.py install

.....

running install_egg_info
Writing D:\Python34\Lib\site-packages\pip-7.1.0-py3.4.egg-info

D:\download\pip-7.1.0>

更新pip命令:
pip install --upgrade pip

 ==============================