我正在尝试运行一个python程序,该程序将采用多个文本文件中的两列组织的数据,并使用matplotlib输出绘图,并且无法打开共享的对象文件。
我正在运行Windows的Ubuntu shell,并安装了python3,尽管看起来它正在尝试使用python2.6。我尝试查找libimf.so,看来它是英特尔数学库。许多相关的问题都提到要为LD_LIBRARY_PATH添加正确的路径,但是我真的不明白那是什么。
这是我正在使用的代码
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
data0 = np.loadtxt("euler0.dat")
data1 = np.loadtxt("euler1.dat")
data2 = np.loadtxt("euler2.dat")
data3 = np.loadtxt("euler3.dat")
data4 = np.loadtxt("euler4.dat")
data5 = np.loadtxt("euler5.dat")
data6 = np.loadtxt("euler6.dat")
plt.scatter(*zip(*data0))
plt.scatter(*zip(*data1))
plt.scatter(*zip(*data2))
plt.scatter(*zip(*data3))
plt.scatter(*zip(*data4))
plt.scatter(*zip(*data5))
plt.scatter(*zip(*data6))
plt.show
这是我收到的错误消息
Traceback (most recent call last):
File "euler.py", line 3, in <module>
import numpy as np
File "/usr/lib64/python2.6/site-packages/numpy/__init__.py", line 136, in <module>
import add_newdocs
File "/usr/lib64/python2.6/site-packages/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/usr/lib64/python2.6/site-packages/numpy/lib/__init__.py", line 4, in <module>
from type_check import *
File "/usr/lib64/python2.6/site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/usr/lib64/python2.6/site-packages/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: libimf.so: cannot open shared object file: No such file or directory