红联Linux门户
Linux帮助

Ubuntu Server 16.04 numpy报错

发布时间:2017-07-03 11:42:18来源:linux网站作者:金泽尚
今天重新安装了一次Keras,出现了一点问题:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python2.7/dist-packages/numpy/core/tests/test_indexing.py", line 17, in <module>
cdll = np.ctypeslib.load_library('multiarray', np.core.multiarray.__file__)
File "/usr/lib/python2.7/dist-packages/numpy/ctypeslib.py", line 163, in load_library
raise OSError("no file with expected extension")
OSError: no file with expected extension
 
然后查找了以下,可能是numpy的版本低的原因,需要更新:
sudo -H pip install --upgrade numpy
 
本文永久更新地址:http://www.linuxdiyf.com/linux/31836.html