Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python GFORTRAN_1.4';找不到_Python_Fortran_Gfortran_Centos7_Cvxopt - Fatal编程技术网

Python GFORTRAN_1.4';找不到

Python GFORTRAN_1.4';找不到,python,fortran,gfortran,centos7,cvxopt,Python,Fortran,Gfortran,Centos7,Cvxopt,我确保安装了gfortran [idf@node1 Index]$ sudo yum install gcc-gfortran Loaded plugins: fastestmirror, langpacks Repository datastax is listed more than once in the configuration http://download.opensuse.org/repositories/home%3A/tpokorra%3A/mono/CentOS_CentO

我确保安装了gfortran

[idf@node1 Index]$ sudo yum install gcc-gfortran
Loaded plugins: fastestmirror, langpacks
Repository datastax is listed more than once in the configuration
http://download.opensuse.org/repositories/home%3A/tpokorra%3A/mono/CentOS_CentOS-7/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

Loading mirror speeds from cached hostfile
 * base: mirror.lug.udel.edu
 * epel: ftp.osuosl.org
 * extras: mirrors.lga7.us.voxel.net
 * updates: centosy3.centos.org
Package gcc-gfortran-4.8.5-4.el7.x86_64 already installed and latest version
Nothing to do
[idf@node1 Index]$
然后,我尝试一个python程序,其导入如下所示

import numpy as np
import numpy.random as rnd
from cvxopt import matrix
from cvxopt import blas
from cvxopt import solvers
import time
我犯了一个错误

[idf@node1 Index]$ python programusescvxopt.py
Traceback (most recent call last):
  File "IndexReplication.py", line 39, in <module>
    from cvxopt import matrix
  File "/home/idf/anaconda2/lib/python2.7/site-packages/cvxopt/__init__.py", line 32, in <module>
    import cvxopt.base
ImportError: /home/idf/anaconda2/lib/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /usr/lib64/liblapack.so.3)
[idf@node1 Index]$
这起作用了

conda remove libgfortran
conda install libgcc --force
这起作用了

conda remove libgfortran
conda install libgcc --force

看起来你的libgfortran太老了。一些令人难以置信的提示。请参阅编辑1。我认为问题在于它没有找到从路径隐藏的库。编辑并不能证明任何事情。可以使用较旧的libgfortran运行较新的gfortran。完全可能。并不总是需要最新的符号。我经常这样做。看起来你的libgfortran太老了。一些令人难以置信的提示。请参阅编辑1。我认为问题在于它没有找到从路径隐藏的库。编辑并不能证明任何事情。可以使用较旧的libgfortran运行较新的gfortran。完全可能。并不总是需要最新的符号。我经常这样做。