# Create\_distplot Issue with scipy Package

**URL:** <https://community.plotly.com/t/create-distplot-issue-with-scipy-package/63516>\
**Category:** 📊 Plotly Python\
**Created:** [April 28, 2022, 1:12pm UTC](https://community.plotly.com/t/create-distplot-issue-with-scipy-package/63516 "2022-04-28T13:12:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tchimy29](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/tchimy29/32/19007_2.png) [@Tchimy29](https://community.plotly.com/u/Tchimy29)\
**Post date:** [April 28, 2022, 1:12pm UTC](https://community.plotly.com/t/create-distplot-issue-with-scipy-package/63516/1 "2022-04-28T13:12:00Z")

</div>

Hello All,

For my project, i need to generate a distribution chart with a gaussian distribution. To do this i use:

plotly version is 5.7.0  
scipy version is 1.7.3

When i execute my code in my virtual env, no issue the Chart is generated. but when i create an executable with (pyinstaller), i have this error message when the method “create\_displot” is called:

import plotly.figure\_factory as stat  
gauss = stat.create\_distplot([x\_data\_new], [serie\_name], bin\_size=.5, curve\_type=‘normal’, show\_hist=False, show\_rug=False)

File “plotly\figure\_factory\_distplot.py”, line 215, in create\_distplot  
File “plotly\figure\_factory\_distplot.py”, line 398, in make\_normal  
AttributeError: module ‘scipy.stats’ has no attribute ‘norm’

Thank’s in advance for your support! 🙂
