在conda中导入,未定义的`__gfortran`符号

时间:2016-12-10 06:11:36

标签: python c++ fortran conda

尝试导入包时,我得到:

[me@server ~]$ ipython 
Python 2.7.12 |Anaconda custom (64-bit)| (default, Jul  2 2016, 17:42:40) 
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import cvxopt
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-14abf1b564a4> in <module>()
----> 1 import cvxopt

/home/me/.local/lib/python2.7/site-packages/cvxopt/__init__.py in <module>()
     30 # You should have received a copy of the GNU General Public License
     31 
---> 32 import cvxopt.base
     33 
     34 def normal(nrows, ncols=1, mean=0.0, std=1.0):

ImportError: /home/me/.local/lib/python2.7/site-packages/cvxopt/base.so: undefined symbol: _gfortran_st_write_done

我的环境完全在conda中设置。我该怎么办?我如何仅使用conda解决gfortran问题?

0 个答案:

没有答案