首页 > 编程知识 正文

linux python安装,pip install python

时间:2023-05-03 20:07:25 阅读:24714 作者:3493

1、请先说一下什么是pip

pip是atoolforinstallingandmanagingpythonpackages .即pip是python的软件安装工具

2、介绍如何在linux上安装pip

wget ' https://pypi.python.org/packages/source/p/pip-1.5.4.tar.gz # MD5=834 b 2904 f 92 d 46 AAAA 33267 FB 1c

yum-y安装构件

tar -xzvf pip-1.5.4.tar.gz

python setup.py install

跟踪后退(mostrecentcalllast ) :

File “setup.py”,line 6,in

from setup tools导入设置,find_packages

首先安装安装工具软件包

(1)下载安装工具包

wget 3358 pypi.python.org/packages/source/s/setup tools/setup tools-2.0.tar.gz

)2)解压缩setuptools数据包

tar zxvf设置工具- 2.0.tar.gz

)3)编译设置工具

python setup.py build

(4)开始安装设置工具

python setup.py install

安装setuptools软件包安装完成后,请重新运行。

python setup.py instal

3、linux下的pip使用参数

pip--帮助

Usage:

pip [选项]

Commands:

安装安装软件包。

非安装非安装软件包。

freezeoutputinstalledpackagesinrequirementsformat。

列表列表已安装软件包。

showshowinformationaboutinstalledpackages。

search Search PyPI for packages。

wheelbuildwheelsfromyourrequirements。

zip deprecated.zipindividualpackages。

unzip deprecated.unzipindividualpackages。

bundle deprecated.createpybundles。

帮助显示帮助。

通用选项s :

-h,- -帮助显示帮助。

-v,--verbosegivemoreoutput.optionisadditive,and can be used up to 3 times。

-V,- -版本显示版本和退出。

-q,--quiet Give less output。

log-filepathtoaverbosenon-appending log,thatonlylogsfailures.thislogisactivebydefaultat/root/. pip/pip.log。

logpathtoaverboseappendinglog.thislogisinactivebydefault。

proxyspecifyaproxyintheform [ user : passwd @ ] proxy.server :端口。

timeoutsetthesockettimeout (默认15 seconds )。

exists-actiondefaultactionwhenapathalreadyexists 3360 (s ) witch,(I ) gnore,(w ) ipe,(b ) ackup。

certpathtoalternatecabundle。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。