解释:C compiler: Traceback (most recent call last): File "D:\dev\python\python3.11.4\Lib\site-packages\setuptools\msvc.py", line 173, in _msvc14_get_vc_env out = subprocess.check_output( ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\python\python3.11.4\Lib\subprocess.py", line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\python\python3.11.4\Lib\subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'cmd /u /c "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 && set' returned non-zero exit status 255. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\dev\python\python3.11.4\Lib\site-packages\mdtraj-1.9.4\setup.py", line 56, in <module> compiler.initialize() File "D:\dev\python\python3.11.4\Lib\site-packages\mdtraj-1.9.4\basesetup.py", line 45, in initialize self._print_compiler_version(cc) File "D:\dev\python\python3.11.4\Lib\site-packages\mdtraj-1.9.4\basesetup.py", line 89, in _print_compiler_version cc.initialize() File "D:\dev\python\python3.11.4\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize vc_env = _get_vc_env(plat_spec) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\python\python3.11.4\Lib\site-packages\setuptools\msvc.py", line 214, in msvc14_get_vc_env return _msvc14_get_vc_env(plat_spec) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\dev\python\python3.11.4\Lib\site-packages\setuptools\msvc.py", line 178, in _msvc14_get_vc_env raise distutils.errors.DistutilsPlatformError( distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools
时间: 2023-07-21 11:07:11 浏览: 293
pseudo-python:受限的python JavaScript C#Ruby编译器
这是一个错误消息,说明在编译某个程序时出现了问题。具体来说,这个错误是由于缺少 Microsoft Visual C++ 14.0 或更高版本所导致的。
要解决这个问题,你需要安装 Microsoft Visual C++ 14.0 或更高版本。你可以通过以下步骤解决:
1. 访问链接:https://visualstudio.microsoft.com/visual-cpp-build-tools
2. 在网页上下载并安装 "Microsoft C++ Build Tools"。
3. 安装完成后,重新运行你的代码或程序,应该就能正常编译了。
请注意,根据你的具体环境和编译需求,可能需要安装其他依赖项或进行其他配置。如果问题仍然存在,你可以查看相关文档或寻求帮助来解决特定的编译问题。
阅读全文