踩坑之路:解决pyinstaller打包后无法运行

问题描述:pyinstaller打包后在没有安装python环境的电脑上闪退无法运行,但是在装有python环境的电脑上可以运行。程序并没有import pandas包,已经注释掉import pandas,但是打包后发现报错:AttributeError: module ‘pandas’ has no attribute ‘core’.网上所有方法均试过,比如更新setuptools,重新卸载安装pandas,重新打包等等

解决办法:估计是pip install自动安装的版本不匹配,于是更改pandas版本,也就是降低pandas版本,由1.0.3到0.25.3.我的是python3.6+pandas0.25.3.

pip install pandas==0.25.3

你可能感兴趣的:(踩坑之路:解决pyinstaller打包后无法运行)