ImportError:无法导入名称'multiarray'[新编辑这个很好]

时间:2017-01-04 18:37:23

标签: python django ubuntu numpy

我有这个错误,我不知道如何修复它我尝试了许多meneras,我不知道我是如何创建新帖子的,因为另一个很糟糕

Traceback (most recent call last):
  File "run.py", line 9, in <module>
    from layer import MacLayer
  File "/root/MacBot/layer.py", line 5, in <module>
    from app import main
  File "/root/MacBot/app/main.py", line 8, in <module>
    from app.yesno.yesno import YesNo
  File "/root/MacBot/app/yesno/yesno.py", line 2, in <module>
    import moviepy.editor as mp
  File "/usr/local/lib/python3.5/dist-packages/moviepy-0.2.2.11-py3.5.egg/moviepy/editor.py", line 22, in <module>
    from .video.io.VideoFileClip import VideoFileClip
  File "/usr/local/lib/python3.5/dist-packages/moviepy-0.2.2.11-py3.5.egg/moviepy/video/io/VideoFileClip.py", line 3, in <module>
    from moviepy.video.VideoClip import VideoClip
  File "/usr/local/lib/python3.5/dist-packages/moviepy-0.2.2.11-py3.5.egg/moviepy/video/VideoClip.py", line 15, in <module>
    import numpy as np
  File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 153, in <module>
    from . import add_newdocs
  File "/usr/lib/python3/dist-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/python3/dist-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/usr/lib/python3/dist-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/usr/lib/python3/dist-packages/numpy/core/__init__.py", line 6, in <module>
    from . import multiarray
ImportError: cannot import name 'multiarray'

1 个答案:

答案 0 :(得分:0)

最简单的解决方案是使用continuum.io/downloads提供的anaconda 那你自己编译就不会搞砸了。