Python 3.x gfortran-9已安装,但正在“安装”;未找到Fortran编译器";错误(Ubuntu服务器18.04)

Python 3.x gfortran-9已安装,但正在“安装”;未找到Fortran编译器";错误(Ubuntu服务器18.04),python-3.x,ubuntu-18.04,gfortran,Python 3.x,Ubuntu 18.04,Gfortran,我刚刚在Ubuntu服务器18.04上安装了gfortran-9,如下所示: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt update sudo apt install gfortran-9 sudo -H pip3 install pyprosail 我已经能够通过编译和运行一个简单的“Hello World”程序来确认gfortran-9是否正常工作 我现在正尝试安装PyproMail,如下所示: sudo a

我刚刚在Ubuntu服务器18.04上安装了gfortran-9,如下所示:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gfortran-9
sudo -H pip3 install pyprosail
我已经能够通过编译和运行一个简单的“Hello World”程序来确认gfortran-9是否正常工作

我现在正尝试安装PyproMail,如下所示:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gfortran-9
sudo -H pip3 install pyprosail
。。。但我收到了以下错误:

error: extension 'PyPROSAIL._prosail_model' has Fortran sources but no Fortran compiler found
gfortran-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.
gfortran-9: /usr/bin/gfortran-9 /usr/share/man/man1/gfortran-9.1.gz
其中gfortran-9显示了以下内容:

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.
gfortran-9: /usr/bin/gfortran-9 /usr/share/man/man1/gfortran-9.1.gz

为什么gfortran-9显然没有被找到?我是否需要在某个地方手动设置gfortran-9的路径?

如果其他人有相同的问题,我可以通过安装不同的Fortran编译器来解决此问题-
gfortran

sudo apt-get install gfortran