pip错误:找不到Fortran编译器,但编译器已经存在
我正在尝试使用pip为PyAstronomy安装外部库: pip install PyAstronomy_ext 我通过Anaconda命令提示符执行此操作。 我第一次运行命令时出现以下错误: building 'PyAstronomy_ext.forTrans.occultnl' extension error: extension 'PyAstronomy_ext.forTrans.occultnl' has Fortran sources but no Fortran compiler found ---------------------------------------- Failed building wheel for PyAstronomy-ext 和 Command "c:\users\matte\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\matte\\AppData\\Local\\Temp\\pip-install-5pkiwi34\\PyAstronomy-ext\\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\matte\AppData\Local\Temp\pip-record-bok3jklv\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in …