Matplotlib AttributeError: module 'matplotlib.cbook' has no attribute '_define_aliases'

前端 未结 3 2016
逝去的感伤
逝去的感伤 2020-12-17 18:07

When trying to plot a graph on jupyter with pyplot I am running the following code:

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel(\'some num         


        
3条回答
  •  暖寄归人
    2020-12-17 18:51

    One thing you could do to guarantee the desinstallation is delete the folder of matplotlib. In Windows you may found in:

    C:\Users\YOUR_USER\AppData\Local\Programs\Python\YOUR_PYTHON_VERSION\Lib\site-packages

    If you have a folder named 'matplotlib' delete it and them reinstall the package.

提交回复
热议问题