Compiler errors 带有“Camb”的错误;GOMP 4.0“;

Compiler errors 带有“Camb”的错误;GOMP 4.0“;,compiler-errors,jupyter-notebook,libgomp,Compiler Errors,Jupyter Notebook,Libgomp,我试图在jupyter笔记本中使用CAMB,因此我使用了代码的第一部分: 但我有一个错误: Using CAMB installed at /home/xoca/Desktop --------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipyt

我试图在jupyter笔记本中使用CAMB,因此我使用了代码的第一部分:

但我有一个错误:

Using CAMB installed at /home/xoca/Desktop

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-66d4d2b00c4a> in <module>()
      8 print('Using CAMB installed at '+ os.path.realpath(os.path.join(os.getcwd(),'..')))
      9 sys.path.insert(0,os.path.realpath(os.path.join(os.getcwd(),'..')))
---> 10 import camb
     11 from camb import model, initialpower

/home/xoca/.local/lib/python2.7/site-packages/camb/__init__.py in <module>()
     10 __version__ = "0.1.2"
     11 
---> 12 from .baseconfig import dll_import
     13 from .camb import CAMBdata, MatterTransferData, get_results, get_transfer_functions, get_background, \
     14     get_age, get_zre_from_tau, set_z_outputs, set_feedback_level, set_params, get_matter_power_interpolator

/home/xoca/.local/lib/python2.7/site-packages/camb/baseconfig.py in <module>()
     33     if not osp.isfile(CAMBL): sys.exit(
     34         '%s does not exist.\nPlease remove any old installation and install again.' % DLLNAME)
---> 35     camblib = ctypes.LibraryLoader(ifort_gfortran_loader).LoadLibrary(CAMBL)
     36 # camblib = ctypes.cdll.LoadLibrary(CAMBL)
     37 else:

/home/xoca/anaconda2/lib/python2.7/ctypes/__init__.pyc in LoadLibrary(self, name)
    438 
    439     def LoadLibrary(self, name):
--> 440         return self._dlltype(name)
    441 
    442 cdll = LibraryLoader(CDLL)

/home/xoca/anaconda2/lib/python2.7/ctypes/__init__.pyc in __init__(self, name, mode, handle, use_errno, use_last_error)
    360 
    361         if handle is None:
--> 362             self._handle = _dlopen(self._name, mode)
    363         else:
    364             self._handle = handle

OSError: /home/xoca/anaconda2/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/xoca/.local/lib/python2.7/site-packages/camb/camblib.so)
使用安装在/home/xoca/Desktop的CAMB
---------------------------------------------------------------------------
OSError回溯(最近一次调用上次)
在()
8打印('使用安装在'+os.path.realpath(os.path.join(os.getcwd(),'..'))的CAMB)
9 sys.path.insert(0,os.path.realpath(os.path.join(os.getcwd(),'..'))
--->10进口柬埔寨
11来自camb进口型号,initialpower
/home/xoca/.local/lib/python2.7/site packages/camb/\uuuuu init\uuuuuuu.py in()
10 uuu版本uuu=“0.1.2”
11
--->12从.baseconfig导入dll\u导入
13从.camb导入CAMBdata、MatterTransferData、get_结果、get_传递函数、get_背景、\
14获取年龄、从头获取zre、设置z输出、设置反馈水平、设置参数、获取物质功率插值器
/home/xoca/.local/lib/python2.7/site-packages/camb/baseconfig.py in()
33如果不是osp.isfile(CAMBL):sys.exit(
34“%s”不存在。\n请删除任何旧安装,然后重新安装。“%DLLNAME)
--->35 camblib=ctypes.LibraryLoader(ifort\u gfortran\u loader).LoadLibrary(CAMBL)
36#camblib=ctypes.cdll.LoadLibrary(CAMBL)
37.其他:
/LoadLibrary中的home/xoca/anaconda2/lib/python2.7/ctypes/_init__;.pyc(self,name)
438
439 def LoadLibrary(自身,名称):
-->440返回自我类型(名称)
441
442 cdll=图书馆装载机(cdll)
/home/xoca/anaconda2/lib/python2.7/ctypes/uuu init_uu.pyc in_uuuinit_uu(self、name、mode、handle、use_errno、use_last_error)
360
361如果句柄为“无”:
-->362 self.\u handle=\u dlopen(self.\u名称,模式)
363其他:
364自.\u手柄=手柄
OSError:/home/xoca/anaconda2/bin/./lib/libgomp.so.1:找不到版本'GOMP_4.0'(由/home/xoca/.local/lib/python2.7/site packages/camb/camblib.so所需)
所以,我不知道发生了什么。我试图找到“GOMP 4.0”软件包,但没有找到。有人能帮我解决这个问题吗

Using CAMB installed at /home/xoca/Desktop

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-66d4d2b00c4a> in <module>()
      8 print('Using CAMB installed at '+ os.path.realpath(os.path.join(os.getcwd(),'..')))
      9 sys.path.insert(0,os.path.realpath(os.path.join(os.getcwd(),'..')))
---> 10 import camb
     11 from camb import model, initialpower

/home/xoca/.local/lib/python2.7/site-packages/camb/__init__.py in <module>()
     10 __version__ = "0.1.2"
     11 
---> 12 from .baseconfig import dll_import
     13 from .camb import CAMBdata, MatterTransferData, get_results, get_transfer_functions, get_background, \
     14     get_age, get_zre_from_tau, set_z_outputs, set_feedback_level, set_params, get_matter_power_interpolator

/home/xoca/.local/lib/python2.7/site-packages/camb/baseconfig.py in <module>()
     33     if not osp.isfile(CAMBL): sys.exit(
     34         '%s does not exist.\nPlease remove any old installation and install again.' % DLLNAME)
---> 35     camblib = ctypes.LibraryLoader(ifort_gfortran_loader).LoadLibrary(CAMBL)
     36 # camblib = ctypes.cdll.LoadLibrary(CAMBL)
     37 else:

/home/xoca/anaconda2/lib/python2.7/ctypes/__init__.pyc in LoadLibrary(self, name)
    438 
    439     def LoadLibrary(self, name):
--> 440         return self._dlltype(name)
    441 
    442 cdll = LibraryLoader(CDLL)

/home/xoca/anaconda2/lib/python2.7/ctypes/__init__.pyc in __init__(self, name, mode, handle, use_errno, use_last_error)
    360 
    361         if handle is None:
--> 362             self._handle = _dlopen(self._name, mode)
    363         else:
    364             self._handle = handle

OSError: /home/xoca/anaconda2/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/xoca/.local/lib/python2.7/site-packages/camb/camblib.so)