mengdeer589
mengdeer589
> > 我给个解法。官方提供的嵌入式解释器并不包含pip工具,以及tkinter模块,下面的步骤是怎么补上这个tkinter模块。 > > 注:本方法目的在于后续可以复用,所以并不按照官方的目录结构来。 > > ①复制tkinter模块。从已经安装了tkinter模块的相同python解释器环境中复制,该模块通常位于解释器的Lib文件夹下,将tkinter文件夹复制到pystand/runtime/lib文件夹下,注意,这里需要新建一个lib文件夹。 > > ②复制tcl资源文件。复制tcl文件夹里面所有的文件,到pystand/runtime/lib文件夹下,tcl文件夹通常位于解释器的同级目录。 > > ③复制二进制模块。复制_tkinter.pyd,tcl86t.dll,tk86t.dll三个文件到pystand/runtime/lib文件夹下,这三个文件通常位于解释器的DLLs文件夹下。 > > ④修改路径。修改runtime文件夹里面的python310._pth文件,增加一行./lib。注意,这里有个点,代表同级目录的lib文件夹。 > > 现在可以运行程序了。如果后续还需要打包tkinter模块。直接复制这里弄好的lib文件夹跟._pth文件到runtime文件夹下即可实现复用。 > > Python 3.12.10,实测这个方法不管用。仍然显示`import _tkinter # if this fails...
Hello, thank you very much for your work. Regarding the [Hunspell Keyboard Language Files](https://win7revived.wearmed.xyz/Hunspell-Virtual-Keyboard-Languages.7z), I am unable to download them properly. Do you have any solution?
是的,我成功构建了Qt6 with WebEngine ,在没有 Hunspell的情况下。 > **Hello mengdeer589**, did you manage to successfully build Qt6 with WebEngine without Hunspell according to this documentation?
我尝试了使用with open方法来解决读取文件包含中文路径的问题,但是这带来了文件读取耗时的显著增长; 发现新方法,datatable支持读取url的文件,可以将路径改为file:///来解决中文路径下文件读取文件 代码示例: from datatable import dt file=r"E:\project\pyqt5_test\数据.csv" new_file=f"file:///{file}" data=dt.fread(new_file) print(data)
需要修改源码,src\core\utils\file.cc,修改File类的构造函数以及File类的成员函数asize以支持中文路径文件读取。以下是我修改源码后重新构建的whl文件,支持python3.11 [datatable-cp311-cp311-win_amd64.zip](https://github.com/user-attachments/files/17492125/datatable-cp311-cp311-win_amd64.zip)
虽然不清楚为啥会出现这个问题,但是解法如下:修改.venv\Lib\site-packages\lightrag\lightrag.py,476行 ` class NoCacheStaticFiles(StaticFiles): async def get_response(self, path: str, scope): response = await super().get_response(path, scope) if path.endswith(".js"): response.headers["Content-Type"] = "application/javascript" if path.endswith(".html"): response.headers["Cache-Control"] = ( "no-cache, no-store, must-revalidate" ) response.headers["Pragma"]...
if "runtime" in sys.exec_prefix: multiprocessing.set_executable(os.path.join(sys.exec_prefix, "pythonw.exe")),试试这个
> 只不过这样的话,runtime 目录中的 python312._pth 得改成这样: > > python312.zip > . > ../site-packages > > # Uncomment to run site.main() automatically > import site > 不然找不到第三方库 用pythonw就行了呀