社区
脚本语言
帖子详情
Macos安装pyinstaller显示错误如何处理
weixin_42219840
2018-09-18 04:42:26
怎么办啊怎么办啊有没有人
...全文
80
回复
打赏
收藏
Macos安装pyinstaller显示错误如何处理
怎么办啊怎么办啊有没有人
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
MacOS
pyinstaller
打包python应用闪退问题解决
使用
pyinstaller
打包:
pyinstaller
-i study.icns -n exam -w -F main.py 这样就打包好了。 1.问题 打包好之后,在dist目录下有两个文件,发现左边的双击可以运行
显示
界面,右边的app双击后却直接闪退了。 如果是使用以下方法打包:
pyinstaller
-i study.icns -n exam -w -D main.py 双击打开也是闪退,在终端使用: open /Users/XXX/GitHub/exam_demo/dist/exam.app 打开也是一样,并抛出
错误
: LSOpenURLsWithRole() faile
unlocker208 —— VMware
安装
MacOS
的必备补丁
unlocker208 是使用 VMware
安装
MacOS
的必备补丁,亲测可用,详情参阅压缩包内有readme。 VMware
安装
MacOS
的流程: =============================================== 1.
安装
VMware Station Pro 12.0 2. 将Unlocker解压,右击win-install.cmd,选择“以管理员身份运行” 3. 为
MacOS
新建虚拟机,注意一定要下载懒人版
安装
包,格式为ISO或CDR 4. 新建完虚拟机之后,“开启此虚拟机”,VMWare会报错。这是因为虚拟机的隐藏参数设置
错误
,你要手动修改: 打开虚拟机所在文件夹,找到.vmx文件,右键使用其他程序打开,并选择记事本,在文件最后添加: smc.version = "0" 并保存。 ================================================= Mac OS X Unlocker for VMware V2.0 ================================= 1. Introduction --------------- Unlocker 2 is designed for Workstation 11, Player 7, ESXi 6 and Fusion 7. If you are using an earlier product please continue using Unlocker 1 Version 2 has been tested against: * Workstation 11/12 on Windows and Linux * Player 7 & Workstation Player 12 on Windows and Linux * Fusion 7/8 on Mavericks and Yosemite * ESXi 6.0 The patch code carries out the following modifications dependent on the product being patched: * Fix vmware-vmx and derivatives to allow Mac OS X to boot * Fix vmwarebase .dll or .so to allow Apple to be selected during VM creation * Fix libvmkctl.so on ESXi 6 to allow use with vCenter * Download a copy of the latest VMware Tools for OS X Note that not all products recognise the darwin.iso via install tools menu item. You will have to manually mount the darwin.iso for example on Workstation 11 and Player 7. The vmwarebase code does not need to be patched on OS X or ESXi so you will see a message on those systems telling you that it will not be patched. In all cases make sure VMware is not running, and any background guests have been shutdown. The code is now Python as it makes the Unlocker easier to run and maintain on ESXi. There are some challenges to write the code as ESXi has a subset of Python 2.7 which constrains some modules that can be used. 2. Prerequisites ---------------- The code requires Python 2.7 to work. Most Linux distros, ESXi and OS X ship with a compatible Python interpreter and should work without requiring any additional software. Windows has a packaged version of the Python script using
PyInstaller
, and so does not require Python to be installed. 3. Limitations -------------- If you are using VMware Player or Workstation on Windows you may get a core dump. Latest Linux and ESXi products are OK and do not show this problem. +-----------------------------------------------------------------------------+ | IMPORTANT: | | ========== | | | | If you create a new VM using version 11 or 12 hardware VMware may stop and | | create a core dump. There are two options to work around this issue: | | | | 1. Change the VM to be HW 10 - this does not affect performance. | | 2. Edit the VMX file and add: | | smc.version = "0" | | | +-----------------------------------------------------------------------------+ 4. Windows ---------- On Windows you will need to either run cmd.exe as Administrator or using Explorer right click on the command file and select "Run as administrator". win-install.cmd - patches VMware win-uninstall.cmd - restores VMware win-update-tools.cmd - retrieves latest OS X guest tools 5. Linux --------- On Linux you will need to be either root or use sudo to run the scripts. You may need to ensure the Linux scripts have execute permissions by running chmod +x against the 2 files. lnx-install.sh - patches VMware lnx-uninstall.sh - restores VMware lnx-update-tools.cmd - retrieves latest OS X guest tools 6. Mac OS X ----------- On Mac OS X you will need to be either root or use sudo to run the scripts. This is really only needed if you want to use client versions of Mac OS X. You may need to ensure the OS X scripts have execute permissions by running chmod +x against the 2 files. osx-install.sh - patches VMware osx-uninstall.sh - restores VMware 7. ESXi ------- You will need to transfer the zip file to the ESXi host either using vSphere client or SCP. Once uploaded you will need to either use the ESXi support console or use SSH to run the commands. Use the unzip command to extract the files. <<>> Please note that you will need to reboot the host for the patches to become active. The patcher is embbedded in a shell script local.sh which is run at boot from /etc/rc.local.d. You may need to ensure the ESXi scripts have execute permissions by running chmod +x against the 2 files. esxi-install.sh - patches VMware esxi-uninstall.sh - restores VMware Note: 1. Any changes you have made to local.sh will be lost. If you have made changes to that file, you will need to merge them into the supplied local.sh file. 2. The unlocker runs at boot time to patch the relevant files and it now survives an upgrade or patch to ESXi as local.sh is part of the persisted local state. 8. Thanks --------- Thanks to Zenith432 for originally building the C++ unlocker and Mac Son of Knife (MSoK) for all the testing and support. Thanks also to Sam B for finding the solution for ESXi 6 and helping me with debugging expertise. Sam also wrote the code for patching ESXi ELF files.
MacOS
10.15.4 Catalina
安装
、使用及周边运维
课程简介 第一部分:启用 VMware Workstation 环境
安装
Apple Mac OS X 第二部分:
安装
MacOS
10.14.2 Mojave 在线升级方式到
MacOS
10.15.4 Catalina新版本 第三部分:在
MacOS
上
安装
MySQL v5.7.28(建议选修:...
kolibri-app:OSX和
macOS
的Kolibri
安装
程序源
Kolibri本机应用程序外壳 跨平台Kolibri应用程序源 要求 Python 3.6(在Windows上使用32位版本) 支持平台 安卓 苹果系统 视窗 入门 Windows注意:在Windows上,
PyInstaller
和最新的virtualenv出现
错误
。 如果您使用的是virtualenv,请将您的virtualenv降级为16.1.0版,直到修复该
错误
为止。 Mac注意:确保使用的是来
安装
软件包。 使用pyenv,自制软件等将无法使用。 这是因为它们的配置与python.org构建不同。 运行pip为要定位的平台下载并
安装
依赖项: pip install -r requirements-
.txt 请注意,跨版本仅适用于Android。 任何其他构建都必须在目标平台上本地运行。 kapew命令行工具 kapew代表使用PyEveryWhere的Kol
mac
安装
pyinstaller
遇到的一些坑与无奈的解决办法(mac版本:
macos
big sur 11.1)
一种不用
安装
就可以使用的,另一种还没有解决办法求大佬帮忙解决的不
安装
pyinstaller
也可以使用的方法还未解决的方法(求大佬指导) 不
安装
pyinstaller
也可以使用的方法 1.首先要下载
pyinstaller
.tar.gz 官网下载地址:http://www.
pyinstaller
.org/downloads.html 2.解压后,打开文件夹会发现其中会有一个
pyinstaller
.py文件 通过操控这个py文件我们就可以打包我们的py文件 例如 python3
pyinstaller
.py -
脚本语言
37,719
社区成员
34,238
社区内容
发帖
与我相关
我的任务
脚本语言
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
复制链接
扫一扫
分享
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
试试用AI创作助手写篇文章吧
+ 用AI写文章