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條評論
主站蜘蛛池模板: 九九久久精品这里久久网 | 欧美不卡在线 | 亚洲精品一区国产二区 | 国产亚洲精品久久午夜 | 国产精品视频网站 | 2046影院视频大全在线观看 | 久久草在线观看视频 | 国产高清看片日韩欧美久久 | 国产香蕉视频在线播放 | 大美女久久久久久j久久 | 2021久久精品99精品久久 | 久久最新免费视频 | 国产福利第一页 | 97久久精品人人做人人爽 | 欧美午夜寂寞影院安卓列表 | 激情综合在线 | 亚洲图片欧美视频 | 久久99国产亚洲精品观看 | 亚洲国产综合视频 | 亚洲 另类色区 欧美日韩 | 免费一级毛片清高播放 | 另类亚洲视频 | 国产一级视频久久 | 青青热久久久久综合精品 | 蜜桃破解版免费看nba | 成人a毛片| 久久一日本道色综合久久 | 在线观看亚洲精品专区 | 免费中文字幕在线 | 欧美日韩亚洲精品一区二区三区 | 老司机精品视频个人在观看 | 日韩亚洲精品不卡在线 | 欧美色视频网 | 九九视频免费在线 | 国产小视频在线观看 | 视频久久精品 | 69久成人做爰视频 | 欧美video巨大粗暴18 | 奇米影视在线观看 | 人.成午夜| 一级毛片免费在线观看网站 |