写在前面

几天不见"吹牛比日志"的后台样式改了啊, 清爽了不少.

环境

win10

python3.8

需求

生成词云

需要安装WordCloud

问题

pip install WordCloud报错WordCloud install failed 10049问题解决

传送门

下载whl文件:https://www.lfd.uci.edu/~gohlke/pythonlibs/

vscode的python官方文档:https://code.visualstudio.com/docs/python/python-tutorial

解决过程

看样子是版本问题, 但是手动下载wordcloud-1.6.0-cp38-cp38-win_amd64.whl 本地安装也不行

csdn发帖子100分悬赏没人回最后找到了个靠谱的https://blog.csdn.net/lsf_007/article/details/87931823

看到安装的进度条还没等高兴起来又出错了

WordCloud install failed 10049问题解决

 

还要下载Microsoft Visual C++ 14.0 ? 参考:https://blog.csdn.net/weixin_41996632/article/details/88793324

这下载速度略慢, 而且还不一定好使, 找到另外一个:成功解决Microsoft visual c++ 14.0 is required问题~~

最后按照这个说的过程, 成功解决.

操作步骤

1.下载Twisted

WordCloud install failed 10049问题解决

 

2.下载Wordcloud

WordCloud install failed 10049问题解决

 

3.install twisted和WordCloud

下载好的文件

WordCloud install failed 10049问题解决

 

 

执行install命令

WordCloud install failed 10049问题解决

 

 WordCloud install failed 10049问题解决

 

补充

另外, 分词 jieba 也遇到了问题可以采用下面命令

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jieba

WordCloud install failed 10049问题解决

 

 

生成词云

详见下一篇:https://www.cnblogs.com/yadongliang/p/12192687.html

 感谢

相关文章: