Pyinstaller:没有名为'scipy'的模块

时间:2017-06-16 19:51:30

标签: python scipy pyinstaller

我正在尝试使用Pyinstaller捆绑使用Scipy的脚本(特别是scipy.interpolate中的interp1d函数)

虽然它在Python中通常对我有用,但我收到错误ImportError: No module named 'scipy'

我尝试使用一个简单的脚本来导入包

import scipy

Pyinstaller代码是

pyinstaller path/to/code.py

我也试过隐藏导入但没有运气。

我知道还有其他关于从Scipy导入特定功能的问题,但是我不能导入主包吗?

1 个答案:

答案 0 :(得分:0)

我会用anaconda仔细安装一切:首先从www.anaconda.com下载/安装anaconda

然后在anaconda提示窗口和终端中为其他人:

conda install scipy

...(conda安装你需要的东西)

conda install -c conda-forge pyinstaller

和pyinstaller ....(你需要什么)

相关问题