PyStand
PyStand copied to clipboard
:rocket: Python Standalone Deploy Environment !!
出现这个: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' - 同样的文件,同样是win7电脑,一台运行是没问题的,一台就出现这个错误。 - 我都看了两台电脑的环境变量,都没有python_home之类的,网上说是环境变量问题,我看两天都没有,应该不是环境变量原因 最后,有懂行的解决下嘛,感谢啦!
不压缩是可以直接运行的 压缩打成egg后就会出现下面的错误 压缩包内是存在这个ui文件的 
[有多进程调用时,会重复启动Qt主窗口直到内存耗尽 #21 ](https://github.com/skywind3000/PyStand/issues/21) 参考过上面的链接,但是上面是 multiprocessing.Process,我这个是 subprocess.Popen ```python # app.py from nicegui import ui, app @app.get("/health") def health(): return {"status": "ok"} @ui.page("/") async def page_index(): ui.label("nicegui 已启动").classes("mx-auto") if __name__ in {"__main__",...
执行多进程相关代码,无限启动进程, python环境为 3.11.5, 以下为PyStand.py内容: ``` if __name__ == "__main__": import multiprocessing as mp mp.set_start_method("spawn", force=True) mp.freeze_support() from concurrent.futures import ProcessPoolExecutor import os print("主进程 PID:", os.getpid()) def worker(x): return x *...
Here is the action repo link: https://github.com/BHznJNs/pystand-build - - - This is the use example which is modified from my own repo: ```yaml jobs: build: runs-on: windows-latest - name: Checkout...
文档拉胯
用了这么久 PyStand,性能很好但不怎么火,感觉很奇怪 应该是文档的问题吧,我看 issue 里挺多关于使用的问题的,文档能更详细一些就好了。还有就是没有英文文档,可能导致这个项目传不到外面去。 作者有重写文档的想法吗?我看这个项目有一阵子没动了……