前言 最近用pyinstaller打包的时候一直报"failed to execute script main". 最终使用"pyinstaller --hidden-import=pkg_resources -F main.py" 顺利打包. 注意:语句中的"-F"一定要大写 转载原文 本文转载自pyinstaller打包运行报错failed to execute script main pyqt5写完win32 应用程序后,经过pyinsta…
最近用PyQt5写了一个界面小程序,需要打包成exe给到其他windows上使用,一开始使用python 3.7 64位,用pyinstaller打包exe,在64位机上运行正常. 但是目标电脑是32位的,所以需要打包32位exe,然后问题就出现了. 打包32位exe, 虽然网上有教程说使用 Anaconda 生成python 的32位环境,我试了,但是没有成功,转而选择卸载64位python,不如直接装32位的python, 依旧使用pyinstaller 打包 打包时虽然有几个警告但貌似还顺…
Fix tcl/tk libs inclusion in tkinter with Python3.7 under MacOS 使用 Pyinstaller 打包时候报错 3027 ERROR: Tcl/Tk improperly installed on this system. (lyj_venv) ➜ liyongjiandeMBP.lan [/Users/liyongjian/lyj] pyinstaller --windowed --onefile --clean --noconfir…
python打包exe,各种入坑 一.安装PyInstaller 1.安装pywin32 pip命令安装:pip install pywin32(推荐) 2.安装Pyinstaller pip命令安装:pip install PyInstaller pip命令安装:pip install pywin32-ctypes 如果是要打包别人写好的.py文件,这时要最好先运行这个文件.可能会出现的缺少的库.例如: No module named matplotlib.pyplot no module n…
今天用python 使用pyinstaller打包exe出现错误 环境pyqt5 + python3.6 在导入pyqt5包之前加上如下代码 import sysimport osif hasattr(sys, 'frozen'): os.environ['PATH'] = sys._MEIPASS + ";" + os.environ['PATH'] from PyQt5.QtWidgets import QApplication, QMainWindowfrom pyqt_ui.M…
tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].多半情况是找不到jar包 解决办法: 右键项目-> 属性->添加lib…
xhprof查看性能测试图一直报错:failed to execute cmd: ” dot -Tpng”多种因素解决方案最近在新环境进行php代码性能测试,用了xhprof这个工具,搭建好以后,点击[View Full Callgraph]查看性能分析图链接一直报错:failed to execute cmd: ” dot -Tpng” 原因一:未安装graphviz如果看到 sh: dot: command not found ,说明服务器上没有安装画图软件graphviz 2.yum安装:…
我在qingcheng_interface中Lifecycle目录下执行install命令后报错"Failed to execute goal on project...Could not resolve dependencies for project...",大意就是当Maven无法下载依赖项. 解决办法: 我的项目结构是一个父项目多个子模块的目录,这样的问题是由于没有首先对父项目进行clean和install,所以在父项目下有的子项目在首次运行clean和install前应该先运…
在spring cloud服务中,有一个ms-code项目,只为所有的微服务提供核心依赖和工具类,没有业务意义,作为核心依赖使用.所以没有main方法,没有启动类. 在spring cloud整体打包的过程中报错: [INFO] --- maven-jar-plugin::jar (default-jar) @ springcloud-ms-core --- [INFO] Building jar: D:\document\IdeaProjects\springcloud\springcloud…
Intel MPI环境利用hostfile多主机运行下报错 HYDU_process_mfile_token (../../utils/args/args.c:523): token slots not supported at this time HYDU_parse_hostfile (../../utils/args/args.c:597): unable to process token mfile_fn (../../ui/mpich/utils.c:446): error parsi…