深圳网站设计制作元,中国建设工程招标网官网,在工商网上怎么注册公司,网站网站在国外将py文件打包成可执行文件
安装pyinstaller pip install pyinstaller打包执行文件
pyinstaller -F F:\AutomationTest\perf_tools.py --onefile 将所有依赖项合并为单个可执行文件#xff0c;而不是多个文件打包成功后#xff0c;当前目录生成一个dist文件夹 生成的可执行…将py文件打包成可执行文件
安装pyinstaller pip install pyinstaller打包执行文件
pyinstaller -F F:\AutomationTest\perf_tools.py --onefile 将所有依赖项合并为单个可执行文件而不是多个文件打包成功后当前目录生成一个dist文件夹 生成的可执行文件 xxx.exe
问题
AttributeError: ‘module’ object has no attribute’xxx’解决方法
删除该库的.pyc文件