python安裝第三方庫報錯

2021-09-13 14:52:36 字數 1244 閱讀 5711

想玩一下wordcloud,結果出現了一連串的問題,記錄一下。。

1. pip直接安裝

直接pip install wordcloud

直接使用pip安裝wordcloud庫時,報錯:error: microsoft visual c++ 14.0 is required. get it with 「microsoft visual c++ build tools」: http: //landinghub. visualstudio. com/ visual- cpp- build- tools

python -m pip install d:\users\h\downloads\wordcloud-1.5.0-cp36-cp36m-win_amd64.whl
又報錯……什麼wordcloud-1.5.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

2.1 被我放棄的乙個方法

查資料的時候發現有一種在shell中輸入import pip; print(pip.pep425tags.get_supported())可以獲取到pip支援的檔名還有版本的方法,我輸入的時候一直報錯:attributeerror: module 『pip』 has no attribute 『pep425tags』,也就放棄了……

3. 解決!

successfully!!撒花~~~~

3.1 補充說明一下版本的含義

win32:指的就是windows系統

64 bit:指的是windows是64位的

amd64:指的就是 cpu是x64的

Python 安裝第三方庫

1 pip工具 pip安裝目錄 c python34 scripts 確認pip是否安裝,執行 pip v c python34 scripts pip v 顯示 pip 9.0.3 from c python34 lib site packages python 3.4 安裝第三方庫 pyexce...

Python安裝第三方庫

pip install 安裝庫名 可能存在的問題 對於過大的第三方庫,建議使用第 二 三種方法 安裝執行cmd,開啟命令列介面,cd c python3 scripts 進入到scripts資料夾下。複製第三方庫包的全部名字,例如 numpy 1.15.4 cp37 none win amd64.w...

python安裝第三方庫

開啟命令列,使用命令 pip install i pytest 其中,i 後面為國內映象路徑,最後為安裝的第三方庫名稱。安裝第三方庫時,只有出現successfully 才算安裝成功,如果出現黃色提示,則一般為pip版本過低,需要公升級,利用國內映象更新pip包的命令為 python m pip i...