我已经使用pyinstaller编译了一些python代码,运行得很好但是在运行实际的可执行文件时,我得到了标题中提到的错误。
我试图解决这个问题:
--paths=directoryofgspreadmodule
# still got the same error.
--hidden-import=gspread
# Samething
总体命令:
python pyinstaller.py -F MyCode.py --paths=directoryofgspreadmodule --onefile
作为附注,我也在使用matplotlib,可执行文件似乎与200Mb一起出现,这是正常的吗?
感谢您的帮助
答案 0 :(得分:0)
永远不要介意这是我自己的坏事。我在目录中设置了--paths =,难怪它无法找到它(如上所述)