title: Pyplot Not Working With Pyinstaller. Exe Crashes With No Errors
body: <p>I'm working on my first gui exe. I'm using the anaconda packages with spyder and the code works fine there. Math, pyplot, numpy, tkinter, and PIL are imported, and the app is fully functional with the exception of pyplot which will not show up when activated from a button widget.</p>
  <p>If instead I create a simple exe with the code:</p>
  <pre><code>import numpy
  import matplotlib.pyplot as plt
  x=numpy.linspace(1,100)
  fig,ax=plt.subplots()
  lineData,=ax.plot(x,3*x)
  </code></pre>
  <p>I get one error during the initial build:</p>
  <pre><code>ModuleNotFoundError: No module named 'Crypto.Math'
  </code></pre>
  <p>and many warnings, but note that the analysis warning file contains no errors either.</p>
  <p>Running the created exe, I get failure and cmd exits. Running from cmd initially instead and turning on debug and verbose imports yields tons of warnings, but no errors.</p>
  <p>I've tried including hidden imports like 'matplotlib.pyplot','matplotlib','Crypto', and importing Crypto, to no avail.  Crypto is not being called anywhere and the reference plot in the build folder says only pyinstaller imports it. I'm at a loss here for what the problem could be.</p>
  <p><a href="https://i.stack.imgur.com/1NCh0.png" rel="nofollow noreferrer">Packages in anaconda folder</a></p>