ModuleNotFoundError:没有名为' numpy.lib.recfunctions'的模块。

时间:2018-05-30 09:21:19

标签: python anaconda

我在Python中安装了statsmodels,但现在出现以下错误:

runfile('/media/mattes/data1/dataDMattes/Code/Python/PythonProgram/main.py', wdir='/media/mattes/data1/dataDMattes/Code/Python/PythonProgram')
Traceback (most recent call last):

File "<ipython-input-19-e8fdc416f3c8>", line 1, in <module>
runfile('/media/mattes/data1/dataDMattes/Code/Python/PythonProgram/main.py', wdir='/media/mattes/data1/dataDMattes/Code/Python/PythonProgram')

File "/home/mattes/anaconda3/envs/test/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile
execfile(filename, namespace)

File "/home/mattes/anaconda3/envs/test/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "/media/mattes/data1/dataDMattes/Code/Python/PythonProgram/main.py", line 49, in <module>

import statsmodels.api as sm
File "/home/mattes/anaconda3/envs/test/lib/python3.6/site-packages/statsmodels/__init__.py", line 10, in <module>
from statsmodels.tools.sm_exceptions import (ConvergenceWarning, CacheWriteWarning,

File "/home/mattes/anaconda3/envs/test/lib/python3.6/site-packages/statsmodels/tools/__init__.py", line 1, in <module>
from .tools import add_constant, categorical

File "/home/mattes/anaconda3/envs/test/lib/python3.6/site-packages/statsmodels/tools/tools.py", line 6, in <module>
import numpy.lib.recfunctions as nprf

ModuleNotFoundError: No module named 'numpy.lib.recfunctions'

有人知道如何解决它吗?

我在Ubuntu 16.04中使用Python 3.6和Spyder 3.2.8与Anaconda

非常感谢!

0 个答案:

没有答案