Python中文
首页
教程
问答
标签
搜索
登录
注册
PIP安装错误:需要微软Visual C++ 14或更大
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<div> </div> <p>我想安装<a href="https://github.com/twintproject/twint" rel="noreferrer">Twint</a>时使用:</p> <pre><code>pip install twint </code></pre> <p>但它失败并生成此错误:</p> <pre><code>ERROR: Command errored out with exit status 1: command: 'c:\users\ramda\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\setup.py'"'"'; __file__='"'"'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\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\ramda\AppData\Local\Temp\pip-record-itnmxqui\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ramda\appdata\local\programs\python\python39\Include\pycares' cwd: C:\Users\ramda\AppData\Local\Temp\pip-install-lbx86gde\pycares\ Complete output (17 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\pycares copying src\pycares\errno.py -> build\lib.win-amd64-3.9\pycares copying src\pycares\utils.py -> build\lib.win-amd64-3.9\pycares copying src\pycares\_version.py -> build\lib.win-amd64-3.9\pycares copying src\pycares\__init__.py -> build\lib.win-amd64-3.9\pycares copying src\pycares\__main__.py -> build\lib.win-amd64-3.9\pycares running build_ext generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_cares.c' creating build\temp.win-amd64-3.9 creating build\temp.win-amd64-3.9\Release building '_cares' 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\ramda\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\setup.py'"'"'; __file__='"'"'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\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\ramda\AppData\Local\Temp\pip-record-itnmxqui\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ramda\appdata\local\programs\python\python39\Include\pycares' Check the logs for full command output. </code></pre> <p>它说:</p> <blockquote> <p>error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools</p> </blockquote> <>但是我的机器已经有微软Visual C++ 14了。事实上,当我再次尝试安装它时,它会显示“它已经安装在您的机器上”或类似的内容</p> <p>我已经尝试了很多在<a href="https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat">this</a>SO讨论中编写的方法。但是没有人为我工作</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>使用以下命令升级您的pip:<code>python -m pip install upgrade pip</code><br/> 升级您的控制盘:<code>pip install upgrade wheel</code><br/> 升级您的setuptools:<code>pip install upgrade setuptools</code></p> <p>关闭终端,然后再次尝试安装软件包</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
区分轴上的像素大小
1 回答
区分过度拟合与良好预测
4 回答
区分通过POST接收的数据并在Cherrypy中获取
6 回答
区分重写和重载
4 回答
区分金贾二号的类型
6 回答
区别:IF IN和IF==python
5 回答
区别:list.append()与incrementequal?
8 回答
区别:创建在启动wx应用程序时不“阻止”控制台的脚本
8 回答
区别于python中的命令行和CGI
3 回答
区别关系
5 回答
区别是什么APIClient.enforce\ csrf\检查以及APIClient.handler.enforce\ csrf\ u检查
2 回答
区块.draw()未在python空闲模式下工作
7 回答
区块链API调用输出对象名称而不是内容
9 回答
区块链nonce值随负载变化
6 回答
区块链Python语法错误(Snakecoin)
5 回答
区块链不连接到服务器和矿工
2 回答
区块链信息钱包支票支付员
3 回答
区块链和区块链密码错误
8 回答
区块链尝试向Transaction字典添加键/值以创建区块链
5 回答
区域:IOError:[Errno 22]无效模式('w')或filenam
4 回答