Pycharm does not show plot

后端 未结 25 1110
鱼传尺愫
鱼传尺愫 2020-12-04 09:13

Pycharm does not show plot from the following code:

import pandas as pd
import numpy as np
import matplotlib as plt

ts = pd.Series(np.random.randn(1000), in         


        
25条回答
  •  感情败类
    2020-12-04 09:22

    I'm using Ubuntu and I tried as @Arie said above but with this line only in terminal:

    sudo apt-get install tcl-dev tk-dev python-tk python3-tk
    

    And it worked!

提交回复
热议问题