Python 3.6没有名为';gspread';-pyinstaller编译的可执行文件

Python 3.6没有名为';gspread';-pyinstaller编译的可执行文件,python,pyinstaller,Python,Pyinstaller,我已经使用pyinstaller编译了一些python代码,运行得很好,但是在运行实际的可执行文件时,我得到了标题中提到的错误 我试图解决的问题是: --paths=directoryofgspreadmodule # still got the same error. --hidden-import=gspread # Samething 总指挥部: python pyinstaller.py -F MyCode.py --paths=directoryofgspreadmodule --

我已经使用pyinstaller编译了一些python代码,运行得很好,但是在运行实际的可执行文件时,我得到了标题中提到的错误

我试图解决的问题是:

--paths=directoryofgspreadmodule 
# still got the same error.
--hidden-import=gspread
# Samething
总指挥部:

python pyinstaller.py -F MyCode.py --paths=directoryofgspreadmodule --onefile
顺便说一句,我也在使用matplotlib,可执行文件看起来有200Mb,这正常吗


谢谢你的帮助

别管这是我自己的错。我在目录本身中设置了--path=,难怪它找不到它(如上所述)

检查gspread模块是否已打包但放置在错误的位置。我的应用程序中的dll存在此问题。您可以尝试向命令中添加--debug以获取其他输出信息。。。您也可以尝试查看%TEMP%\MEI。。。解包可执行文件的目录。如果它不在那里,那么您至少缩小了范围我在%TEMP%\MEI中找不到它,但是当查看“warnMain”(称为我的python代码“main”)时,我发现:缺少名为gspread的模块-由main导入