![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pyinstaller
wzq29931927
大道至简
展开
-
python tkinter自动更新功能的实现
这个问题一直困扰了很久,用Python 开发的软件 使用pyinstaller 封装后 编写的更新功能无法实现,一直提示权限错误。最终解决了问题,记录一下方便后续回忆,代码如下。 templist = '''\@echo offif not exist "./{}" exittimeout /t 3copy /y "./{}" "./"rd /s /q "./{}"start ./{}'''.format(update_file, update_file, update_file,原创 2021-08-01 21:10:19 · 2167 阅读 · 0 评论 -
pyinstaller - 常见打包错误整理
1 pynput模块打包出现如下错误错误提示空白 先将pynput 改变版本后在进行打包cmd > pip install pynput==1.6.8原创 2021-01-16 21:48:42 · 331 阅读 · 1 评论 -
pyinstaller - 代码中使用os.system() os.popen() 打包后找不到模块的问题
困扰了半天终于理顺了之所以找不到对应的模块 是因为os.system() 使用的是当前系统的搜索路径 如虚拟环境中有 真实环境中没有 或者是发给其他用户使用 均会提示对应错误解决的根源 在于给系统增加上对应的搜索路径 即 sys.path.insert(0, path) 或 sys.path.append()参考代码如下# 在生产新文件的最上方 导入对应模块# 生成文件text_content = """# cython: language_level=3import s...原创 2021-01-03 22:14:29 · 1812 阅读 · 2 评论