Xwitter 2021-12-06 21:12 采纳率: 50%
浏览 88
已结题

python安装wordcloud库出现以下提示是怎么回事啊,ヾ(≧▽≦*)o

C:\Users\Supernova>pip install wordcloud
Collecting wordcloud
Using cached wordcloud-1.8.1.tar.gz (220 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.6.1 in c:\users\supernova\appdata\local\programs\python\python39\lib\site-packages (from wordcloud) (1.21.4)
.......
Requirement already satisfied: setuptools in c:\users\supernova\appdata\local\programs\python\python39\lib\site-packages (from setuptools-scm>=4->matplotlib->wordcloud) (59.5.0)
Using legacy 'setup.py install' for wordcloud, since package 'wheel' is not installed.
Installing collected packages: wordcloud
Running setup.py install for wordcloud ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\supernova\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Supernova\AppData\Local\Temp\pip-install-dnev02_u\wordcloud_f340b0082f3f4c5dbad261b952191728\setup.py'"'"'; file='"'"'C:\Users\Supernova\AppData\Local\Temp\pip-install-dnev02_u\wordcloud_f340b0082f3f4c5dbad261b952191728\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Supernova\AppData\Local\Temp\pip-record-4nllez6e\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\supernova\appdata\local\programs\python\python39\Include\wordcloud'
cwd: C:\Users\Supernova\AppData\Local\Temp\pip-install-dnev02_u\wordcloud_f340b0082f3f4c5dbad261b952191728
Complete output (22 lines):
running install
c:\users\supernova\appdata\local\programs\python\python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_version.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_init.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_main
.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud
UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py
set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1'
running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\supernova\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Supernova\AppData\Local\Temp\pip-install-dnev02_u\wordcloud_f340b0082f3f4c5dbad261b952191728\setup.py'"'"'; file='"'"'C:\Users\Supernova\AppData\Local\Temp\pip-install-dnev02_u\wordcloud_f340b0082f3f4c5dbad261b952191728\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Supernova\AppData\Local\Temp\pip-record-4nllez6e\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\supernova\appdata\local\programs\python\python39\Include\wordcloud' Check the logs for full command output.

C:\Users\Supernova>

  • 写回答

1条回答 默认 最新

  • 赵4老师 2021-12-06 21:26
    关注

    安装vs2015或更高,选自定义安装,勾选c/c++

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 12月14日
  • 已采纳回答 12月6日
  • 创建了问题 12月6日

悬赏问题

  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境
  • ¥30 关于#java#的问题,请各位专家解答!
  • ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并
  • ¥20 pcf8563时钟芯片不启振
  • ¥20 pip2.40更新pip2.43时报错
  • ¥15 换yum源但仍然用不了httpd
  • ¥50 C# 使用DEVMOD设置打印机首选项
  • ¥15 麒麟V10 arm安装gdal
  • ¥20 OPENVPN连接问题