1

我正在努力让安装了 numpy、scipy、matplotlib 和 wxpython/PyQt 的 ide 适用于 python 2.7。运行 ide spyder 会为 numpy 抛出消息“模块‘对象’没有属性‘核心’”。在 IDLE 上“from numpy import *”时会出现相同的消息。
这是整个信息。请帮忙。谢谢!C:\Python27\Scripts>C:\Python27\python.exe "C:\Python27\Scripts\spyder"

Traceback (most recent call last):
  File "C:\Python27\Scripts\spyder", line 2, in <module>
    from spyderlib import spyder
  File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 96, in <module>

from spyderlib.utils.environ import WinUserEnvDialog
File "C:\Python27\lib\site-packages\spyderlib\utils\environ.py", line 17, in <module>
from spyderlib.widgets.dicteditor import DictEditor
File "C:\Python27\lib\site-packages\spyderlib\widgets\dicteditor.py", line 31, in <module>
from spyderlib.config import get_icon, get_font
File "C:\Python27\lib\site-packages\spyderlib\config.py", line 27, in <module>

from spyderlib.utils import iofuncs, codeanalysis
File "C:\Python27\lib\site-packages\spyderlib\utils\iofuncs.py", line 61, in <module>
import numpy as np
File "C:\Users\User\AppData\Roaming\Python\Python27\site-packages\numpy\__init__.py", line 137, in <module>
import add_newdocs
File "C:\Users\User\AppData\Roaming\Python\Python27\site-packages\numpy\add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "C:\Users\User\AppData\Roaming\Python\Python27\site-packages\numpy\lib\__init__.py", line 13, in <module>
from polynomial import *
File "C:\Users\User\AppData\Roaming\Python\Python27\site-packages\numpy\lib\polynomial.py", line 11, in <module>
import numpy.core.numeric as NX
AttributeError: 'module' object has no attribute 'core'
4

0 回答 0