且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在PyInstaller中,为什么不将NumPy.Random.Common加载为模块?

更新时间:2023-12-05 08:51:34

通过在import pandas之前添加三个导入来解决此问题.

Solved this by adding three imports before import pandas.

import numpy.random.common
import numpy.random.bounded_integers
import numpy.random.entropy

似乎PyInstaller失去了这些库的路径... 然后,在命令行中,我写道:

It seems that PyInstaller loses the path to these libraries... Then, at the command line I wrote:

pyinstaller install -n APP_NAME -c --clean SCRIPT_NAME.py

对我有用.