ImportError: No module named matplotlib.pyplot

后端 未结 13 946
春和景丽
春和景丽 2020-11-28 02:03

I am currently practicing matplotlib. This is the first example I practice.

#!/usr/bin/python

import matplotlib.pyplot as plt

radius = [1.0, 2.0, 3.0, 4.0]         


        
13条回答
  •  情歌与酒
    2020-11-28 02:57

    I had a similar problem, using pip3 and all these things worked for installing matplotlib but not pyplot. This solved it for me:

    import matplotlib as plt
    from matplotlib import pyplot as pllt
    

提交回复
热议问题