python初准备:安装easy_install和pip

时间:2021-12-24 22:28:02
安装easy_install
wget http://peak.telecommunity.com/dist/ez_setup.py 
python ez_setup.py
安装pip
wget https://pypi.python.org/packages/source/p/pip/pip-1.4.tar.gz#md5=ca790be30004937987767eac42cfa44a

tar -zxf pip-1.4.tar.gz && cd pip-1.4 
python setup.py install

通过easy_install安装pip 写道
easy_install pip
显示已安装的包:
pip show 包名(可带版本号)  -用于显示单个包
pip freeze                           -可显示所有已安装的包

PS. 记得设置%PYTHON_HOME%/Scripts/到PATH环境变量

--end