1. 程式人生 > >python中wordcloud的安裝

python中wordcloud的安裝

wordcloud是python第三方庫中一個構建詞雲的庫,今天用了

pip install 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

 解決方案之一(親測有效):

1.首先到第三庫中下載wordcloud庫,推薦這個網址

2.開啟cmd安裝wheel

pip install wheel

 3.直接將下載好的.whl檔案拖到 pip install後面即可

pip install E:\python\wordcloud-1.5.0-cp37-cp37m-win32.whl

4.安裝成功:

Installing collected packages: wordcloud
Successfully installed wordcloud-1.5.0

可以建立你的詞雲了,喵喵喵