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條評論
主站蜘蛛池模板: 真人午夜a一级毛片 | 婷婷国产在线 | 久久精品国产只有精品2020 | 女bbbbxxxx另类亚洲 | 在线观看日韩视频 | 欧产日产国产精品专区 | 免费看人做人爱视频拍拍拍 | 91精品成人免费国产片 | 老司机深夜福利网站 | 亚洲日韩中文字幕一区 | 精品视频一区二区三区在线播放 | 国产香蕉久久精品综合网 | 色综合久久中文字幕综合网 | 日本高清中文字幕视频在线 | 国产自产视频在线观看香蕉 | 国产精品久久免费视频 | 亚洲wuma| 国产精品视频一区二区猎奇 | 深夜免费福利视频 | 二区视频| 老子不卡影院 | 亚洲 欧美 日韩 在线 | 99精品国产福利在线观看 | 欧美成人a级在线视频 | 久久国产精品岛国搬运工 | 国产露脸系列magnet | 国产婷婷高清在线观看免费 | 91亚洲精品成人一区 | 全部免费的毛片在线看美国 | 99在线影院| 久久精品免视看国产成人2021 | 人人综合 | 成年女人视频网站免费m | 亚洲国产天堂久久九九九 | 青草免费免费观看视频在线 | 91亚色| 精品欧美一区手机在线观看 | 噜噜噜天天躁狠狠躁夜夜精品 | 成人小片magnet | 成人免费视频视频在线观看 免费 | 午夜国产福利视频 |