pip与linux中的yum非常类似,下载、安装软件包并解决依赖问题。
安装
C:\Python33\Scripts>easy_install.exe pip Searching for pip Best match: pip 9.0.1 Processing pip-9.0.1-py3.3.egg pip 9.0.1 is already the active version in easy-install.pth Installing pip3-script.py script to C:\Python33\Scripts Installing pip3.exe script to C:\Python33\Scripts Installing pip3.3-script.py script to C:\Python33\Scripts Installing pip3.3.exe script to C:\Python33\Scripts Installing pip-script.py script to C:\Python33\Scripts Installing pip.exe script to C:\Python33\Scripts Using c:\python33\lib\site-packages\pip-9.0.1-py3.3.egg Processing dependencies for pip Finished processing dependencies for pip
下载安装
1.下载地址: https://bootstrap.pypa.io/get-pip.py 2.安装 d:\py>python get-pip.py
更新
python -m pip install -U pip
查看已安装软件包
d:\py>pip list --format=columns Package Version ---------- ------- enum34 1.1.6 olefile 0.44 Pillow 4.2.1 pip 9.0.1 psutil 5.2.2 pywin32 218 setuptools 28.8.0 wheel 0.29.0
检查需要更新的软件包
d:\py>pip list --outdate --format=columns Package Version Latest Type ---------- ------- ------ ----- setuptools 28.8.0 36.2.7 wheel
更新软件包
d:\py>pip install --upgrade setuptools Collecting setuptools Downloading setuptools-36.2.7-py2.py3-none-any.whl (477kB) 100% |████████████████████████████████| 481kB 93kB/s Installing collected packages: setuptools Found existing installation: setuptools 28.8.0 Uninstalling setuptools-28.8.0: Successfully uninstalled setuptools-28.8.0 Successfully installed setuptools-36.2.7
将C:\Python33\Scripts\加入系统环境变量
本文出自 “HUNT” 博客,请务必保留此出处http://hunt1574.blog.51cto.com/1390776/1953161
原文地址:http://hunt1574.blog.51cto.com/1390776/1953161