我刚刚在Ubuntu Server 18.04上安装了gfortran-9,如下所示:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gfortran-9我已经能够通过编译和运行一个简单的'Hello World‘程序来确认gfortran-9工作正常。
我现在正在尝试安装PyPROSAIL,如下所示:
sudo -H pip3 install pyprosail..。但我收到以下错误:
error: extension 'PyPROSAIL._prosail_model' has Fortran sources but no Fortran compiler foundgfortran-9 --version向我展示了以下内容:
GNU Fortran (Ubuntu 9.2.1-17ubuntu1~18.04.1) 9.2.1 20191102
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.whereis gfortran-9向我展示了以下内容:
gfortran-9: /usr/bin/gfortran-9 /usr/share/man/man1/gfortran-9.1.gz为什么gfortran-9显然没有被找到?是否需要在某个地方手动设置gfortran-9的路径?
发布于 2020-02-07 13:29:07
如果其他人遇到同样的问题,我可以通过安装不同的Fortran编译器来解决这个问题-- gfortran
sudo apt-get install gfortranhttps://stackoverflow.com/questions/60107426
复制相似问题