虚拟环境安装GPAW等包遇MSVCCompiler错误,求Windows编译器配置方法
安装GPAW时出现
AttributeError: 'MSVCCompiler' object has no attribute 'compiler'错误的原因及解决方法 错误详情
AttributeError: 'MSVCCompiler' object has no attribute 'compiler' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for gpaw Running setup.py clean for gpaw Failed to build gpaw ERROR: Could not build wheels for gpaw, which is required to install pyproject.toml-based projects
环境与已尝试操作
- 使用Python 3.8.10
- 已执行
pip install wheel,问题未解决 - 尝试过部分常见的"Failed building wheel"修复方案,均无效
补充更新
已按建议更新pip和setuptools,且已安装numpy、scipy和h5py。根据GPAW官网说明,其兼容Python 3.8及以上版本。目前疑问:在Windows系统中如何确保编译器正确安装(比如安装位置等)?安装ASAP3和ase_ext时也遇到相同问题。
内容的提问来源于stack exchange,提问作者Jose Corral
相关产品推荐
相关产品推荐

