Anaconda环境pip安装jwst遇LNK1104错误及wheel构建失败
安装jwst时的编译链接错误问题
- 在Anaconda Python环境中执行
pip install jwst,最初弹出错误:Microsoft Visual C++ 14.0 or greater is required,即使安装了最新版Visual Studio Build Tools,该错误仍然存在。 - 按照同类问题的解决方案,执行了命令:
pip install libpython m2w64-toolchain -c msys2。
执行后出现新的链接错误:
LINK : fatal error LNK1104: could not open file 'build\temp.win-amd64-cpython-311\Release\Users\***\AppData\Local\Temp\pip-install-l5rn428c\drizzle_7ef4190d35d0411caabe45eb6792130b\src\cdrizzle.cp311-win_amd64.exp' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\bin\\HostX86\\x64\\link.exe' failed with exit code 1104 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for drizzle Failed to build drizzle ERROR: Could not build wheels for drizzle, which is required to install pyproject.toml-based projects
- 查到有旧的问题案例指出,64位电脑使用x86版本Visual Studio Build Tools会引发这类错误。当前使用的Build Tools确实是32位编译器,但找不到对应的64位版本,不确定该旧方案是否还适用于当前环境。
内容的提问来源于stack exchange,提问作者periwwinkle
相关产品推荐
相关产品推荐

