Pycharm does not show plot

后端 未结 25 1097
鱼传尺愫
鱼传尺愫 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:35

    None of the above worked for me but the following did:

    1. Disable the checkbox (Show plots in tool window) in pycharm settings > Tools > Python Scientific.

    2. I received the error No PyQt5 module found. Went ahead with the installation of PyQt5 using :

      sudo apt-get install python3-pyqt5
      

    Beware that for some only first step is enough and works.

提交回复
热议问题