Home > other >  For bosses to help analyze the reason for the seaborn in pycharm package problems
For bosses to help analyze the reason for the seaborn in pycharm package problems

Time:10-07

Installed numpy matplotlib, scipy package but seaborn or run out

The import matplotlib. Pyplot as PLT
The import seaborn as SNS
The from scipy import stats
The import numpy as np

Np, the random seed (100)
Rn1=np. Random. Normal (loc=0, scale=1, size=100)
PLT. Style. Use (' ggplot)
G=SNS. Distplot (rn1, hist=False, kde=False, fit=stats, norm, fit_kws={' color ', 'black', 'label' : 'u=0, s=1', 'graphics.linestyle' : '-'})
PLT. Legend ()
PLT. The show ()

The following error:
E: \ pycharm \ venv \ Scripts \ python exe E:/pycharm course2/studyhistplot py
Traceback (the most recent call last) :
The File "E:/pycharm course2/studyhistplot py", line 3, the in & lt; module>
The import seaborn as SNS
The File "E: \ pycharm \ venv \ lib \ site - packages \ seaborn \ set py", line 6, the in & lt; module>
From the rcmod import *
The File "E: \ pycharm \ venv \ lib \ site - packages \ seaborn \ rcmod py", line 5, in & lt; module>
From the import palettes, _orig_rc_params
The File "E: \ pycharm \ venv \ lib \ site - packages \ seaborn \ palettes py", line 12, the in & lt; module>
From the utils import desaturate, set_hls_values get_color_cycle
The File "E: \ pycharm \ venv \ lib \ site - packages \ seaborn \ utils py", line 17, in & lt; module>
Pandas_has_categoricals=LooseVersion (pd) __version__) & gt;="0.15"
AttributeError: module 'pandas' has no attribute' __version__ '

The Process finished with exit code 1

My bag is installed version:
Matplotlib 3.1.2 3.2.0 rc1
Numpy 1.16.3 1.18.0 rc1
Scipy 1.3.3 1.4.0 rc2
Seaborn 0.9.0 0.9.0
Statsmodels 0.10.2 0.10.2
PIP 19.3.1 19.3.1
Pandas 0.24.2 0.25.3

The terminal can figure out smoothly, but prefer to use pycharm, bosses can help me have a look at where is problem!
  • Related