pythonez_setup.py>1.txtExtractingin" />

亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

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

系統 1522 0

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

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

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

運行 python ez_setup.py

            
D:\work\installation\setuptools-15.2\setuptools-15.2>python ez_setup.py > 1.txt 
Extracting in c:\users\admini~1\appdata\local\temp\tmpbxikxf 
Now working in c:\users\admini~1\appdata\local\temp\tmpbxikxf\setuptools-15.2 
Installing Setuptools 
...... 
Copying setuptools-15.2-py2.7.egg to c:\python27\lib\site-packages 
setuptools 15.2 is already the active version in easy-install.pth 
Installing easy_install-script.py script to C:\Python27\Scripts 
Installing easy_install.exe script to C:\Python27\Scripts 
Installing easy_install-2.7-script.py script to C:\Python27\Scripts 
Installing easy_install-2.7.exe script to C:\Python27\Scripts 
 
 
Installed c:\python27\lib\site-packages\setuptools-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:\python27\lib\site-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:\Python27\Scripts 
Installing pip.exe script to C:\Python27\Scripts 
Installing pip2.7-script.py script to C:\Python27\Scripts 
Installing pip2.7.exe script to C:\Python27\Scripts 
Installing pip2-script.py script to C:\Python27\Scripts 
Installing pip2.exe script to C:\Python27\Scripts 
 
Using c:\python27\lib\site-packages\pip-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非官方包下載,二進制文件,下載安裝方便.


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 免费视频爱爱 | 国产精品久久久久尤物 | 毛片黄片一级片 | 看全大色黄大色黄大片一级爽 | 亚洲丶国产丶欧美一区二区三区 | 午夜伦情电午夜伦情影院 | 久久精品一区二区三区日韩 | 日韩区欧美区 | 老司机精品久久最新免费 | 久久成人乱小说 | 成 人 黄 色| 久久影院中文字幕 | 日韩有码第一页 | 精品一区二区三区在线观看 | 国产色婷婷精品综合在线手机播放 | 99国产超薄丝袜足j在线观看 | 成人免费a视频 | 久久精品免视着国产成人 | 国产特级片 | 精品国产一区二区三区久久 | 精品中文字幕一区二区三区四区 | 日日草视频 | 青草99| 夜色私人影院永久地址入口 | 新香蕉视频在线 | 日韩爱爱 | 欧美日韩在线播一区二区三区 | 加勒比精品久久一区二区三区 | 国产精品久久毛片 | 久久久中文字幕日本 | 97影院理论片手机在线观看 | 九九久久国产 | 精品xxxxxbbbb欧美中文 | 亚洲成在人网站天堂一区二区 | 欧美国产激情二区三区 | 国产在线19禁免费观看国产 | 免费av一区二区三区 | 精品视频在线免费播放 | 一级成人黄色片 | 日日艹夜夜 | 奇米888影视 |