Python third-party library wordcloud installation

python install wordcloud

    今天听嵩老师的课,让装wordcloud词云库,我用pip安装出现了一些问题,还上网看了好多方法,最后终于成功了!开心,所以想跟大家分享一下。

Initial input : pip install wordcloud
Insert picture description here
error: Could not find a version that satisfies the requirement numpy (from versions :)
No matching distribution found for numpy
. Method of searching online:
Method 1: Use domestic mirror
pip install wordcloud -i http:// pypi.douban.com/simple/ --trusted-host pypi.douban.com
Insert picture description here
Method 2: Enter pip3 install wordcloud
Insert picture description here

The result is not useless. . . . . . .
Later, using another big brother's method, a miracle appeared——
1. Download the wordcloud compiled installation package, local installation method;
download address: https://www.lfd.uci.edu/~gohlke/pythonlibs/# wordcloud
2. Select the corresponding version to install (corresponding to the python installation version)
first check your own version: use cmd command, enter python,
Insert picture description here
and then find the corresponding wordcloud version
Insert picture description here
3. Local python install wheel, installation method pip, command: pip install wheel

4. After installing wheel, use pip to install and download to the local: wordcloud-1.6.0-cp36-cp36m-win_amd64.whl (you can download the corresponding version)
Insert picture description here
5. Finally, enter: pip install wordcloud and
you will find that it works .

Guess you like

Origin blog.csdn.net/langezuibang/article/details/105667789