2017-06-16 62 views
0

我試圖用Pyinstaller捆綁使用SciPy的腳本(具體而言,從interp1d功能scipy.interpolate)Pyinstaller:無模塊名爲「SciPy的」

雖然它通常在Python工作對我來說很好,我得到的錯誤ImportError: No module named 'scipy'

我用一個簡單的腳本,只是導入包試過

import scipy 

的Pyinstaller代碼

pyinstaller path/to/code.py 

我也嘗試過隱藏導入,但沒有運氣。

我知道還有其他關於從Scipy導入特定功能的問題,但我不應該能夠導入主包?

+0

你甚至沒有正確地複製錯誤。 –

+0

您的PyInstaller可能使用錯誤的Python版本。 – ForceBru

+0

如果我拿出所有的scipy引用,我就可以捆綁所有東西。由於某種原因,它似乎並不喜歡那個軟件包。 –

回答

0

我會小心安裝所有與水蟒:首先下載/從www.anaconda.com

安裝蟒蛇然後在窗口中的蟒蛇提示,並在終端爲他人:

conda install scipy

...(康達安裝你所需要的)

conda install -c conda-forge pyinstaller

和pyins更高....(你需要什麼)

相關問題