吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 2303|回复: 12
收起左侧

[求助] 求助,Python安装词云失败,按提示安装了Visual Studio 2019后任然不行,求助怎么弄!

[复制链接]
psypot 发表于 2020-4-14 10:56
求助,Python安装词云失败,按提示安装了Visual Studio 2019后任然不行,求助怎么弄!下面是错误提示,请教大家,谢谢!
Running setup.py install for wordcloud ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\93732\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\93732\\AppData\\Local\\Temp\\pip-install-zwvvwi4d\\wordcloud\\setup.py'"'"'; __file__='"'"'C:\\Users\\93732\\AppData\\Local\\Temp\\pip-install-zwvvwi4d\\wordcloud\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\93732\AppData\Local\Temp\pip-record-pli0kf_9\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\93732\appdata\local\programs\python\python38-32\Include\wordcloud'
         cwd: C:\Users\93732\AppData\Local\Temp\pip-install-zwvvwi4d\wordcloud\
    Complete output (20 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.8
    creating build\lib.win32-3.8\wordcloud
    copying wordcloud\color_from_image.py -> build\lib.win32-3.8\wordcloud
    copying wordcloud\tokenization.py -> build\lib.win32-3.8\wordcloud
    copying wordcloud\wordcloud.py -> build\lib.win32-3.8\wordcloud
    copying wordcloud\wordcloud_cli.py -> build\lib.win32-3.8\wordcloud
    copying wordcloud\_version.py -> build\lib.win32-3.8\wordcloud
    copying wordcloud\__init__.py -> build\lib.win32-3.8\wordcloud
    copying wordcloud\__main__.py -> build\lib.win32-3.8\wordcloud
    copying wordcloud\stopwords -> build\lib.win32-3.8\wordcloud
    copying wordcloud\DroidSansMono.ttf -> build\lib.win32-3.8\wordcloud
    UPDATING build\lib.win32-3.8\wordcloud/_version.py
    set build\lib.win32-3.8\wordcloud/_version.py to '1.6.0'
    running build_ext
    building 'wordcloud.query_integral_image' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\93732\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\93732\\AppData\\Local\\Temp\\pip-install-zwvvwi4d\\wordcloud\\setup.py'"'"'; __file__='"'"'C:\\Users\\93732\\AppData\\Local\\Temp\\pip-install-zwvvwi4d\\wordcloud\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\93732\AppData\Local\Temp\pip-record-pli0kf_9\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\93732\appdata\local\programs\python\python38-32\Include\wordcloud' Check the logs for full command output.

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

lizf2019 发表于 2020-4-14 11:12
你需要VPx才能安上
RemMai 发表于 2020-4-14 11:16
 楼主| psypot 发表于 2020-4-14 11:16
ch806632096 发表于 2020-4-14 11:25
更换pip源,以后都不用翻那个墙,推荐给你好用的阿里镜像源
https://pypi.tuna.tsinghua.edu.cn/simple
木叶小弟 发表于 2020-4-14 11:29
我直接下载  然后cmd里安装的  也是报错  咋试都不行  也换源了    CMD安装也很简单  
 楼主| psypot 发表于 2020-4-14 11:34
RemMai 发表于 2020-4-14 11:16
先使用pip卸载,切换pip源,再pip安装.

我用的清华的镜像,其它的几个扩展模块能安,但是这个wordcloud安不了,您是说先载什么?然后切换到什么pip源?
 楼主| psypot 发表于 2020-4-14 11:37
本帖最后由 psypot 于 2020-4-14 11:38 编辑
木叶小弟 发表于 2020-4-14 11:29
我直接下载  然后cmd里安装的  也是报错  咋试都不行  也换源了    CMD安装也很简单

换成什么源了?怎么弄?我现在用的是清华的镜像,其它模块能安,但是这个wordcloud安不了。
jamesr2017 发表于 2020-4-14 12:44
需要安装:MSVC v142 - VS 2019 C++ x64/x86 Spectre缓解库
隔壁家的王二狗 发表于 2020-4-14 13:07
你好像是微软环境没得
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-1-15 13:26

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表