突然,我的所有python软件包都无法在anaconda中使用。
我尝试重新安装基本软件包,例如pandas和matplotlib,但似乎找不到路径
'''
Python 3.6.8 |Anaconda, Inc.| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.4.0 -- An enhanced Interactive Python.
NOTE: The following error appeared when setting your Matplotlib backend
Traceback (most recent call last):
File "C:\Users\Ben\Anaconda3\lib\site-packages\spyder_kernels\console\kernel.py", line 475, in _set_mpl_backend
get_ipython().run_line_magic(magic, backend)
File "C:\Users\Ben\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2307, in run_line_magic
result = fn(*args, **kwargs)
File "<C:\Users\Ben\Anaconda3\lib\site-packages\decorator.py:decorator-gen-109>", line 2, in matplotlib
File "C:\Users\Ben\Anaconda3\lib\site-packages\IPython\core\magic.py", line 187, in <lambda>
call = lambda f, *a, **k: f(*a, **k)
File "C:\Users\Ben\Anaconda3\lib\site-packages\IPython\core\magics\pylab.py", line 99, in matplotlib
gui, backend = self.shell.enable_matplotlib(args.gui)
File "C:\Users\Ben\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3384, in enable_matplotlib
pt.activate_matplotlib(backend)
File "C:\Users\Ben\Anaconda3\lib\site-packages\IPython\core\pylabtools.py", line 313, in activate_matplotlib
import matplotlib.pyplot
File "C:\Users\Ben\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 31, in <module>
import matplotlib.colorbar
File "C:\Users\Ben\Anaconda3\lib\site-packages\matplotlib\colorbar.py", line 32, in <module>
import matplotlib.artist as martist
File "C:\Users\Ben\Anaconda3\lib\site-packages\matplotlib\artist.py", line 16, in <module>
from .path import Path
File "C:\Users\Ben\Anaconda3\lib\site-packages\matplotlib\path.py", line 21, in <module>
from . import _path, rcParams
ImportError: cannot import name '_path'
'''
这是我立即打开Spyder时在控制台中收到的消息