pyinstaller

Fatal Python error: initfsencoding: unable to load the file system codec

可紊 提交于 2020-04-12 09:32:11
问题 I have created a .exe file of a simple script with intentions to run it on a server however I cannot seem to figure out what this fault means or find any answers online. The fault code is as follows: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00003c8c (most recent call first): To get this far I used pyinstaller pyinstaller --onefile MyScript.py When this didn't work I also tried pyinstaller

Fatal Python error: initfsencoding: unable to load the file system codec

人走茶凉 提交于 2020-04-12 09:31:49
问题 I have created a .exe file of a simple script with intentions to run it on a server however I cannot seem to figure out what this fault means or find any answers online. The fault code is as follows: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00003c8c (most recent call first): To get this far I used pyinstaller pyinstaller --onefile MyScript.py When this didn't work I also tried pyinstaller

Python无限弹窗,开机启动,打包为exe程序

♀尐吖头ヾ 提交于 2020-04-09 00:52:30
Python无限弹窗,打包为exe程序开机自启动,娱乐小程序。 import tkinter as tk import random,threading,win32api,win32con, shutil,os,sys def Mymovefile(): #移动程序到当前分区下命名为 ARE_YOU_OKAY.exe。朋友问删了为什么还会执行。当然是因为有备份,玩够了就在分区下面删除这个吧。 if not os.path.exists(os.path.abspath(sys.argv[0])[0] + ':\\ARE_YOU_OKAY.exe'): #看当前分区下有没有 shutil.copyfile(os.path.abspath(sys.argv[0]), os.path.abspath(sys.argv[0])[0] + ':\\ARE_YOU_OKAY.exe') # 移动文件 class AutoRun(): #设置为开机自启程序######《《《《第一次360会提示篡改程序,在朋友的电脑上帮他确定一下。以后开机都会执行》》》》 def __init__(self): name = 'lalalulala' # 要添加的项值名称 path = os.path.abspath(sys.argv[0])[0] + ':\\ARE_YOU_OKAY.exe' #

把 Python 脚本打包成可以直接双击运行的 .exe 文件

我是研究僧i 提交于 2020-04-07 13:38:23
把 Python 脚本打包成可以直接双击运行的 .exe 文件 安装   pip3 install pyinstaller pip install pypiwin32 执行 pyinstaller -F -i qq.ico -w test.py -F 指定打包后只生成一个exe格式的文件 -D –onedir 创建一个目录,包含exe文件,但会依赖很多文件(默认选项) -c –console, –nowindowed 使用控制台,***面(默认) -w –windowed, –noconsole 使用窗口,无控制台 -p 添加搜索路径,让其找到对应的库。 -i 改变生成程序的icon图标`` 来源: oschina 链接: https://my.oschina.net/u/4394395/blog/3223044

pyinstaller ModuleNotFoundError

 ̄綄美尐妖づ 提交于 2020-04-06 22:08:08
问题 I have built a python script using tensorflow and I am now trying to convert it to an .exe file, but have ran into a problem. After using pyinstaller and running the program from the command prompt I get the following error: File "site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 25, in <module> ModuleNotFoundError: No module named 'tensorflow.python.platform' I have tried --hidden-import tensorflow.python.platform but it seems to have fixed nothing. (The program runs just fine

Building an executable using pyinstaller, with windows default executable icon

六月ゝ 毕业季﹏ 提交于 2020-03-25 13:47:03
问题 I just need to build an executable using pyinstaller, with the default windows .exe icon. Or a way to remove/set default windows icon after compiling. Thank you. 回答1: I don't think you can just use windows default .exe icon, but you can set your own. Use pyinstaller --onefile --icon=myicon.ico yourapp.py for the command, and have myicon.ico in that directory or specify which directory. 来源: https://stackoverflow.com/questions/60290427/building-an-executable-using-pyinstaller-with-windows

Building an executable using pyinstaller, with windows default executable icon

让人想犯罪 __ 提交于 2020-03-25 13:45:24
问题 I just need to build an executable using pyinstaller, with the default windows .exe icon. Or a way to remove/set default windows icon after compiling. Thank you. 回答1: I don't think you can just use windows default .exe icon, but you can set your own. Use pyinstaller --onefile --icon=myicon.ico yourapp.py for the command, and have myicon.ico in that directory or specify which directory. 来源: https://stackoverflow.com/questions/60290427/building-an-executable-using-pyinstaller-with-windows

Building an executable using pyinstaller, with windows default executable icon

感情迁移 提交于 2020-03-25 13:45:11
问题 I just need to build an executable using pyinstaller, with the default windows .exe icon. Or a way to remove/set default windows icon after compiling. Thank you. 回答1: I don't think you can just use windows default .exe icon, but you can set your own. Use pyinstaller --onefile --icon=myicon.ico yourapp.py for the command, and have myicon.ico in that directory or specify which directory. 来源: https://stackoverflow.com/questions/60290427/building-an-executable-using-pyinstaller-with-windows

[pyinstaller][open-cv] ImportError: OpenCV loader: missing configuration file: ['config.py']

北城余情 提交于 2020-03-22 10:53:26
问题 I am trying to build binary package of my code, the build process completed with success, but when I m trying to run the binary file, I got such an error: ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation. Error log: 回答1: I have solved this problem by upgrading opencv-python and pyinstaller pip install --upgrade opencv-python pip install --upgrade pyinstaller 来源: https://stackoverflow.com/questions/55319943/pyinstalleropen-cv-importerror-opencv

[pyinstaller][open-cv] ImportError: OpenCV loader: missing configuration file: ['config.py']

醉酒当歌 提交于 2020-03-22 10:53:09
问题 I am trying to build binary package of my code, the build process completed with success, but when I m trying to run the binary file, I got such an error: ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation. Error log: 回答1: I have solved this problem by upgrading opencv-python and pyinstaller pip install --upgrade opencv-python pip install --upgrade pyinstaller 来源: https://stackoverflow.com/questions/55319943/pyinstalleropen-cv-importerror-opencv