Failed building wheel for wordcloud(window安裝pip install wordcloud報錯)


問題

Window Command輸入pip install wordcloud報錯,一片紅

"error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":" 這個不是必需

解決

在網上搜索到解決方案:https://github.com/amueller/word_cloud/issues/105#issuecomment-287332742

把步驟整理一下:

  1. https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud 下載對應的版本,與本地的Python版本保持一致

image

  1. 怎么判斷自己是amd還是intel?有一個比較簡單的方法,在Window Command輸入Python,像下圖這樣
    image

  2. 找到你要下載的版本后,然后下載到本地,比如我這里下載到Python39目錄下
    image

  3. 使用pip安裝剛剛下載的whl文件
    python -m pip install wordcloud-1.8.1-cp39-cp39-win_amd64.whl
    或者pip install wordcloud-1.8.1-cp39-cp39-win_amd64.whl

最后安裝成功~

參考:https://stackoverflow.com/questions/28568070/filename-whl-is-not-supported-wheel-on-this-platform/36158157
https://stackoverflow.com/questions/1405913/how-do-i-determine-if-my-python-shell-is-executing-in-32bit-or-64bit


免責聲明!

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



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