이 질문에 대한 간결한 답변을 인터넷에서 찾았으나 찾을 수없는 것 같습니다. 파이썬 2에 jupyter를 사용하고 있으며 matplotlib.pyplot을 아무 쓸모없이 가져 오려고합니다.님이 matplotlib을 jupyter에 가져올 수 없습니다.
import matplotlib.pyplot as plt
%matplotlib inline
그리고 나타나는 오류 메시지입니다 : 이것은 내가 실행하고 코드는
내가 업데이트하기 matplotlib, NumPy와, scimath, scipy, 그리고 아나콘다 네비게이터가---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-5-385145dcc870> in <module>()
----> 1 import matplotlib.pyplot as plt
2 get_ipython().magic(u'matplotlib inline')
/Users/mbhall88/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/__init__.py in <module>()
120 # cbook must import matplotlib only within function
121 # definitions, so it is safe to import from it here.
--> 122 from matplotlib.cbook import is_string_like, mplDeprecation, dedent, get_label
123 from matplotlib.compat import subprocess
124 from matplotlib.rcsetup import (defaultParams,
/Users/mbhall88/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/matplotlib/cbook.py in <module>()
31 from weakref import ref, WeakKeyDictionary
32
---> 33 import numpy as np
34 import numpy.ma as ma
35
/Users/mbhall88/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/__init__.py in <module>()
183 return loader(*packages, **options)
184
--> 185 from . import add_newdocs
186 __all__ = ['add_newdocs',
187 'ModuleDeprecationWarning',
/Users/mbhall88/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/add_newdocs.py in <module>()
11 from __future__ import division, absolute_import, print_function
12
---> 13 from numpy.lib import add_newdoc
14
15 ###############################################################################
/Users/mbhall88/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>()
15 from .ufunclike import *
16
---> 17 from . import scimath as emath
18 from .polynomial import *
19 #import convertcode
ImportError: cannot import name scimath
(기본적으로 업데이트 된 모든 I 생각할 수있는) 모든 것을 재시작했는데 나는 여전히이 오류가 발생합니다.
사과 드려 죄송하지만 간단한 내용이라면 이러한 오류 메시지 중 일부를 읽을 수 없습니다.
미리 감사드립니다. 그것은 가능성이 enthought의 NumPy와에 지어진 당신의 아나콘다 ENV 및하기 matplotlib에서 NumPy와와 충돌하여 Enthought 캐노피 배포에서 NumPy와 원인 '이다하지만 CONDA 하나에 대해 실행
대단히 감사합니다. 이것은 꽤 수개월 동안 저를 귀찮게했습니다. –