python安裝過程的一些問題解決方案


1、 pip升級后出現提示信息

DEPRECATION: The default format will switch to columns in the future. You can use –format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. 
這段信息的意思是說以后pip list的默認格式會采用columns了 
解決方法:(windows)在C:\Users{用戶名}\ 目錄下創建名稱為pip的文件夾,里面創建文本文件,內容為 

[list] 
format=columns 

然后保存文件名為pip.ini就解決了,這時候再重新打開命令行執行pip list就不會出現提示信息了

2、使用pip install pandas 時出現錯誤提示

error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: http://landinghub.visualstudio.com/visual-cpp-build-tools 
這是由於某些模塊需要依賴vs,打開上面的url,下載visualcppbuildtools_full.exe然后選擇默認方式安裝就可以了,安裝完成后重新執行pip 安裝命令就ok了。

3、安裝python3時出現錯誤:

zipimport.ZipImportError: can’t decompress data; zlib not available 
使用yum 安裝 zlib、zlib-devel就可以了。記得使用yum search去查看詳細包名。 
未完待續。。。。。。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM