Monday, January 26, 2015

cx_freeze issues with scipy

When using Cx_freeze with a script that uses an interpolation function from scipy I was getting import errors. More specifically the error was "ImportError: No module named _ufuncs_cxx"

This can be solved by explicitly adding two scipy modules:
cxfreeze --include-modules=scipy.special._ufuncs_cxx,scipy.sparse.csgraph._validation your_script.py --target-dir your_target_dir

This solution is based on information from this website.

1 comment:

  1. The Best Mobile Casinos - MJ Hub
    Mobile casinos are a fantastic 문경 출장안마 way 창원 출장샵 to play video slots 원주 출장마사지 and play bingo 제천 출장안마 games at the casino, and they're the perfect place to play a few 하남 출장샵 different types of games

    ReplyDelete