python第三方库的安装方式,python第三方模块的使用方法
计算机编程语言中有哪几种方法安装第三方模块,安装计算机编程语言第三方模块的方法有很多,这里介绍三种方法安装第三方模块。
【方法一】: 通过下载来安装大蟒模块
首先下载http://peak.telecommunity.com/dist/ez_setup.py
注:最好下载个setuptools,本人是15.2版本,里面包含了ez_setup
运行 python ez_setup.py
d : \工作\安装\安装工具-15.2 \安装工具-15.2 ythonez _ setup。py1。文本文件(textfile)
正在提取c : \ users \ admini ~ 1 \ appdata \ local \ temp \ tmpbxikxf
now working Inc : \ users \ admini ~ 1 \ appdata \ local \ temp \ tmpbxikxf \ setup tools-15.2
安装安装工具
.
复制setuptools-15.2-py 2.7。eggtoc : \ python 27 \ lib \ site-packages
安装工具15.2 salreadythectiveversionineasy-安装。甲状旁腺素
安装easy _ install-script。pyscripttoc : \ python 27 \脚本
安装简易安装。exescripttoc : \ python 27 \ Scripts
正在安装easy _ install-2.7脚本。pyscripttoc : \ python 27 \脚本
正在安装easy _ install-2.7。exescripttoc : \ python 27 \ Scripts
已安装c : \ python 27 \ lib \ site-packages \ setup tools-15.2-py 2.7。蛋
设置工具的处理依赖性==15.2
finishedprocessingdependenciesforsetuptools==15.2运行 easy_install py
D:\workeasy_installpy#py为第三方库文件
搜索公司
最佳匹配:py
添加py 1。4 .26至易于安装。甲状旁腺素文件
使用c:\python27\lib\site包
Processingdependenciesforpy
finishedprocessingdependencies for py[方法二】: 通过点来安装大蟒模块
安装 easy_install pip
D:\workeasy_installpip
搜索目标
最佳匹配:pip
处理鸡蛋
pip 6。1 .1 isareadythectiv
eversionineasy-install.pth
Installingpip-script.pyscripttoC:\Python27\Scripts
Installingpip.exescripttoC:\Python27\Scripts
Installingpip2.7-script.pyscripttoC:\Python27\Scripts
Installingpip2.7.exescripttoC:\Python27\Scripts
Installingpip2-script.pyscripttoC:\Python27\Scripts
Installingpip2.exescripttoC:\Python27\Scripts
Usingc:\python27\lib\site-packages\pip-6.1.1-py2.7.egg
Processingdependenciesforpip
Finishedprocessingdependenciesforpip运行 pip install xlrd
Usage:【方法三】:直接从网上下载下可执行文件来安装.pip<command></command>[options]
Commands:
installInstallpackages.
uninstallUninstallpackages.
freezeOutputinstalledpackagesinrequirementsformat.
listListinstalledpackages.
showShowinformationaboutinstalledpackages.
searchSearchPyPIforpackages.
wheelBuildwheelsfromyourrequirements.
zipDEPRECATED.Zipindividualpackages.
unzipDEPRECATED.Unzipindividualpackages.
helpShowhelpforcommands.
GeneralOptions:
-h,--helpShowhelp.
--isolatedRunpipinanisolatedmode,ignoring
environmentvariablesanduserconfiguration.
-v,--verboseGivemoreoutput.Optionisadditive,andcanbe
usedupto3times.
-V,--versionShowversionandexit.
-q,--quietGivelessoutput.
--log<path>Pathtoaverboseappendinglog.
--proxy<proxy>Specifyaproxyintheform
[user:passwd@]proxy.server:port.
--retries<retries>Maximumnumberofretrieseachconnectionshould
attempt(default5times).
--timeout<sec>Setthesockettimeout(default15seconds).
--exists-action<action>Defaultactionwhenapathalreadyexists:
(s)witch,(i)gnore,(w)ipe,(b)ackup.
--trusted-host<hostname>Markthishostastrusted,eventhoughitdoes
nothavevalidoranyHTTPS.
--cert<path>PathtoalternateCAbundle.
--client-cert<path>PathtoSSLclientcertificate,asinglefile
containingtheprivatekeyandthecertificate
inPEMformat.
--cache-dir<dir>Storethecachedatain<dir>.
--no-cache-dirDisablethecache.
--disable-pip-version-check
Don'tperiodicallycheckPyPItodetermine
whetheranewversionofpipisavailablefor
download.Impliedwith--no-index.
比如说,去 >>> pythonlibs <<< 网站,提供了很多Python非官方包下载,二进制文件,下载安装方便.
郑重声明:本文由网友发布,不代表盛行IT的观点,版权归原作者所有,仅为传播更多信息之目的,如有侵权请联系,我们将第一时间修改或删除,多谢。