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

前端 未结 3 2013
逝去的感伤
逝去的感伤 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:59

    I had exactly the same error after installing scikit. The workaround for that was to upgrade pip using the following command first before installing any other packages.

    !pip install pip --upgrade
    

提交回复
热议问题