The pathex needed a path to the numpy directory in addition to the site-packages directory. So, still a bit clueless about why numpy is not being imported. With a cimport numpy, Cython imports numpy. Then you need to compile these files with C compiler that will produce numpy. To unsubscribe from this group and stop receiving emails from it, send an email to. Could it be that pyinstaller expects the. Re: Getting "No module named numpy" when loading "numpy. It seems as if PyInstaller is failing to load the Cython numpy.Īdding the tuple. Getting "No module named numpy" when loading "numpy. Stack Overflow works best with JavaScript enabled.Search everywhere only in this topic. Triage needs to be fixed urgently, and users need to be notified upon….ĭark Mode Beta - help us root out low-contrast and un-converted bits. Technical site integration observational experiment live on Stack Overflow. Community and Moderator guidelines for escalating issues via new response….įeedback on Q2 Community Roadmap. The Overflow How many jobs can be done at home? Featured on Meta. Roko Mijic Roko Mijic 3, 1 1 gold badge 14 14 silver badges 27 27 bronze badges. Therefore I suspect that an additional problem occurred in your case. I had exactly the same problem, and -hidden-import sklearn.
No module named pyinstaller code#
Recently, I used sklearn to do linear regression analysis, and the code was compiled and run by me.īut when I packaged to the. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.