国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
當前位置: 首頁 - 科技 - 知識百科 - 正文

Python安裝第三方庫的3種方法

來源:懂視網 責編:小采 時間:2020-11-27 14:41:08
文檔

Python安裝第三方庫的3種方法

Python安裝第三方庫的3種方法:【方法一】: 通過setuptools來安裝python模塊 首先下載 http://peak.telecommunity.com/dist/ez_setup.py NOTE: 最好下載個setuptools,本人是15.2版本,里面包含了ez_setup 運行 python ez_setup.py D:\work\in
推薦度:
導讀Python安裝第三方庫的3種方法:【方法一】: 通過setuptools來安裝python模塊 首先下載 http://peak.telecommunity.com/dist/ez_setup.py NOTE: 最好下載個setuptools,本人是15.2版本,里面包含了ez_setup 運行 python ez_setup.py D:\work\in

【方法一】: 通過setuptools來安裝python模塊

首先下載 http://peak.telecommunity.com/dist/ez_setup.py

NOTE: 最好下載個setuptools,本人是15.2版本,里面包含了ez_setup

運行 python ez_setup.py

D:workinstallationsetuptools-15.2setuptools-15.2>python ez_setup.py > 1.txt 
Extracting in c:usersadmini~1appdatalocal	emp	mpbxikxf 
Now working in c:usersadmini~1appdatalocal	emp	mpbxikxfsetuptools-15.2 
Installing Setuptools 
...... 
Copying setuptools-15.2-py2.7.egg to c:python27libsite-packages 
setuptools 15.2 is already the active version in easy-install.pth 
Installing easy_install-script.py script to C:Python27Scripts 
Installing easy_install.exe script to C:Python27Scripts 
Installing easy_install-2.7-script.py script to C:Python27Scripts 
Installing easy_install-2.7.exe script to C:Python27Scripts 
 
 
Installed c:python27libsite-packagessetuptools-15.2-py2.7.egg 
Processing dependencies for setuptools==15.2 
Finished processing dependencies for setuptools==15.2 

運行 easy_install py

D:work>easy_install py #py 為第三方庫文件 
Searching for py 
Best match: py 1.4.26 
Adding py 1.4.26 to easy-install.pth file 
 
Using c:python27libsite-packages 
Processing dependencies for py 
Finished processing dependencies for py 

【方法二】: 通過pip來安裝python模塊

安裝 easy_install pip

D:work>easy_install pip 
Searching for pip 
Best match: pip 6.1.1 
Processing pip-6.1.1-py2.7.egg 
pip 6.1.1 is already the active version in easy-install.pth 
Installing pip-script.py script to C:Python27Scripts 
Installing pip.exe script to C:Python27Scripts 
Installing pip2.7-script.py script to C:Python27Scripts 
Installing pip2.7.exe script to C:Python27Scripts 
Installing pip2-script.py script to C:Python27Scripts 
Installing pip2.exe script to C:Python27Scripts 
 
Using c:python27libsite-packagespip-6.1.1-py2.7.egg 
Processing dependencies for pip 
Finished processing dependencies for pip 

運行 pip install xlrd

Usage: 
 pip  [options] 
 
Commands: 
 install Install packages. 
 uninstall Uninstall packages. 
 freeze Output installed packages in requirements format. 
 list List installed packages. 
 show Show information about installed packages. 
 search Search PyPI for packages. 
 wheel Build wheels from your requirements. 
 zip DEPRECATED. Zip individual packages. 
 unzip DEPRECATED. Unzip individual packages. 
 help Show help for commands. 
 
General Options: 
 -h, --help Show help. 
 --isolated Run pip in an isolated mode, ignoring 
 environment variables and user configuration. 
 -v, --verbose Give more output. Option is additive, and can be 
 used up to 3 times. 
 -V, --version Show version and exit. 
 -q, --quiet Give less output. 
 --log  Path to a verbose appending log. 
 --proxy  Specify a proxy in the form 
 [user:passwd@]proxy.server:port. 
 --retries  Maximum number of retries each connection should 
 attempt (default 5 times). 
 --timeout  Set the socket timeout (default 15 seconds). 
 --exists-action Default action when a path already exists: 
 (s)witch, (i)gnore, (w)ipe, (b)ackup. 
 --trusted-host  Mark this host as trusted, even though it does 
 not have valid or any HTTPS. 
 --cert  Path to alternate CA bundle. 
 --client-cert  Path to SSL client certificate, a single file 
 containing the private key and the certificate 
 in PEM format. 
 --cache-dir  Store the cache data in . 
 --no-cache-dir Disable the cache. 
 --disable-pip-version-check 
 Don't periodically check PyPI to determine 
 whether a new version of pip is available for 
 download. Implied with --no-index. 

【方法三】:直接從網上下載下可執行文件來安裝.

比如說,去 >>> pythonlibs <<< 網站,提供了很多Python非官方包下載,二進制文件,下載安裝方便.

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

Python安裝第三方庫的3種方法

Python安裝第三方庫的3種方法:【方法一】: 通過setuptools來安裝python模塊 首先下載 http://peak.telecommunity.com/dist/ez_setup.py NOTE: 最好下載個setuptools,本人是15.2版本,里面包含了ez_setup 運行 python ez_setup.py D:\work\in
推薦度:
標簽: 方法 安裝 方式
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top 主站蜘蛛池模板: 国产区精品福利在线社区 | 中文字幕久久久久一区 | 久久亚洲国产成人精品性色 | 日韩午夜免费视频 | 国产成人亚洲综合91精品555 | 国产91丝袜在线播放动漫 | 亚洲另类网 | 国产日韩久久久久69影院 | 国产h片在线观看 | 在线观看精品国产 | 99精品高清视频一区二区 | 欧美色视频在线 | 国产一级特黄全黄毛片 | 国产精品高清一区二区三区 | 亚洲精品一线二线三线 | 国产欧美日韩另类va在线 | 欧美亚洲免费 | 亚洲欧美另类在线 | 日韩高清一区 | 亚洲成人免费 | 欧美成人亚洲高清在线观看 | 久久精品一区二区三区四区 | 国产精品123区 | 国产va免费精品 | 国产成人青青热久免费精品 | 欧美综合在线观看 | 久久成人a毛片免费观看网站 | 91欧美精品| 最近免费中文字幕大全免费版视频 | 91欧美精品 | 91在线一区二区三区 | 日本一区二区三区视频在线观看 | 国产嘿咻视频 | 欧美日韩综合网 | 精品一区二区三区免费视频 | 欧美中出 | 免费a级在线观看完整片 | 国产精品ⅴ视频免费观看 | 欧美色亚洲 | 交欧美 | 国产一区二区成人 |