python-3.x 错误:命令“C:\Program Files(x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe”失败,退出代码为2

ff29svar  于 11个月前  发布在  Python
关注(0)|答案(1)|浏览(310)

所以我试图在Python上安装这个包Eur-Lex,遇到了这个错误:

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects

字符串
我试图在博客或论坛上找到解决方案,但没有成功。我只有Python的基本知识。首先,这是“Microsoft Visual C++ 14.0是必需的错误”,所以我下载了Build Tools,它工作。还试图在VSCode或Spyder后重新安装Python,但没有工作。Python版本:3.8.10
有什么见解吗?

0md85ypi

0md85ypi1#

在修复“Microsoft Visual C++ 14.0 is required error”后,我在安装Twilio时遇到了同样的问题。但这对我来说很有效。
对于Python 3.11/12:

pip install aiohttp==3.9.0b0

字符串
然后再试一次

pip install [package]


参考:ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

相关问题