miaofeng520 2022-03-21 08:24 采纳率: 100%
浏览 7567
已结题

Python 安装wordcloud时报错 legacy-install-failure

电脑安装wordcloud时下载到一半手动停掉了,再次重新下载安装时就出现legacy-install-failure的问题。

Installing collected packages: six, pyparsing, pillow, numpy, kiwisolver, fonttools, cycler, python- dateutil, packaging, matplotlib, wordcloud
Running setup.py install for wordcloud ... error
error: subprocess-exited-with-error

× Running setup.py install for wordcloud did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud_version.py -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud_init.py -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud_main
.py -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.10\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.10\wordcloud
UPDATING build\lib.win-amd64-3.10\wordcloud/_version.py
set build\lib.win-amd64-3.10\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 Tool s": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> wordcloud

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

尝试重新安装 pip install wordcloud,问题还是同样存在。

img

希望有人能帮忙看看要怎么样才可以解决问题以成功安装,谢谢!

  • 写回答

4条回答 默认 最新

    报告相同问题?

    相关推荐 更多相似问题

    问题事件

    • 系统已结题 3月29日
    • 已采纳回答 3月21日
    • 创建了问题 3月21日

    悬赏问题

    • ¥16 请问pyglet如何做出不同按扭跳转不同页面的效果,以及如何储存选择选项的次数(语言-python)
    • ¥15 想了2小时了,求解答
    • ¥15 python怎么自动填表、登录?
    • ¥15 python列表嵌套按条件合并
    • ¥15 VBA怎么把工作簿A中的第N列,复制到工作簿B中的第N列。
    • ¥20 除了狗屎npm, 推荐一些编写web应用的方式?
    • ¥30 如何对嵌套结构体进行动态内存分配
    • ¥15 关于sprintf的几个问题
    • ¥15 不确定行列数的迷宫文件传入
    • ¥15 怎么解决kali linux从root文件夹里复制文件权限不够的问题