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

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 对于这个问题的解释说明
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。