我无法使用该命令
import matplotlib.pyplot as plt
Run Code Online (Sandbox Code Playgroud)
之前我使用过我的脚本,但由于我使用了更新了我的anaconda,它们不再工作了
conda -update all
Run Code Online (Sandbox Code Playgroud)
我收到一条很长的错误消息,但我真的不明白这是什么问题,请参阅随附的代码.任何人都知道如何解决它?我甚至已经卸下anaconda并重新安装它但它还没有修复它?我也只更新了使用公寓的marplotlib,但它没有帮助.有什么建议?
run transform.py
/Users/tfridrich/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py:273:UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/Users/tfridrich/computing/Log_spectral_analysis/test01/transform.py in <module>()
6 import scipy.fftpack
7 #import matplotlib as plt
----> 8 import matplotlib.pyplot as plt
9 from las import LASReader
10 import checknumber
/Users/tfridrich/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py in <module>()
27 from cycler import cycler
28 …Run Code Online (Sandbox Code Playgroud)