wordcloud安装问题
本帖最后由 xiaosi4081 于 2020-7-27 19:46 编辑想做个词云玩一玩,但是wordcloud模块没法安装{:10_266:}
清华源,阿里云源都试过了,但是无济于事{:10_266:}
这是报错:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\x4\AppData\Local\Programs\Python\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'C:\\Users\\x4\\AppData\\Local\\Temp\\pip-install-pu3kdl86\\wordcloud\\setup.py'"'"'; __file__='"'"'C:\\Users\\x4\\AppData\\Local\\Temp\\pip-install-pu3kdl86\\wordcloud\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\x4\AppData\Local\Temp\pip-wheel-7xswnjmd'
cwd: C:\Users\x4\AppData\Local\Temp\pip-install-pu3kdl86\wordcloud\
Complete output (20 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\_version.py -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\__init__.py -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\__main__.py -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.8\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.8\wordcloud
UPDATING build\lib.win-amd64-3.8\wordcloud/_version.py
set build\lib.win-amd64-3.8\wordcloud/_version.py to '1.7.0'
running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Failed building wheel for wordcloud https://blog.csdn.net/DCclient/article/details/89818315 因为安装wordcloud时有c/c++部分源码需要在目标平台上现场编译,而你系统里又没有编译工具所以报错。解决办法如楼上,就是去下载事先编译好的包来安装,或者按照报错最后的网址去下载安装vs2019的构建工具(安装别的需要编译的库时也可以用,一劳永逸)
页:
[1]