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條評論
主站蜘蛛池模板: 色天使色婷婷丁香久久综合 | 国产在线一区二区三区欧美 | 欧美日韩在线成人 | 天天舔天天插 | 免费特黄一级欧美大片在线看 | 久久资源365| 亚洲精彩 | 日本黄色小视频在线观看 | 色狠狠一区二区 | 国产福利视频网站 | 伊人久久婷婷丁香六月综合基地 | 日本在线亚州精品视频在线 | 国内自拍 在线播放 网红 | 成人网影 | 国产91在线九色 | 国产欧美久久一区二区 | 最新久久免费视频 | 久久亚洲这里只有精品18 | 七七久久 | 99久女女精品视频在线观看 | 四虎国产永久在线精品免费观看 | 久久这里只有精品8 | 久久综合偷偷噜噜噜色 | 国内夫妇精品对白在线播放 | 欧美综合一区 | 人人干人人干 | 亚洲视频综合网 | 国产成人免费全部网站 | 日本欧美一区二区三区不卡视频 | 99久女女精品视频在线观看 | 欧美激情(一区二区三区) | 国产99久久九九精品免费 | 欧美日韩在线播放一区二区三区 | 亚洲专区在线视频 | 欧美一级成人影院免费的 | 爱性网| 久久综合久美利坚合众国 | 国产美女久久久久久久久久久 | 久久久综合 | julia中文字幕在线观看 | 久久亚洲综合 |