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去查看詳細包名。
未完待續。。。。。。