ImportError when using cx_Freeze with scipy
问题 I'm trying to use cx_Freeze to generate a .app from a python project. Generally I have it working, but some of my modules which depend on scipy have an import error when executed: No module named '_csr' under the build folder I see a file: scipy.sparse.sparsetools._csr.so and watching the output of the build command seems to suggest that it's copying csr: $ python3 setup.py bdist_mac | grep csr m scipy.sparse.csr /usr/local/lib/python3.3/site-packages/scipy/sparse/csr.py m scipy.sparse