简体   繁体   English

"使用 Python4Delphi 组件时未找到 python33.dll 错误"

[英]python33.dll not found Error while using Python4Delphi component

I'm working on a project with Python4Delphi component and also i want to use embedded version of python which is better to use as needs no installation.我正在开发一个带有 Python4Delphi 组件的项目,而且我想使用嵌入式版本的 python,因为不需要安装,它更好用。 I've set the correct path and filename to python310.dll in the appropriate properties but no chance to run properly and always getting the我已经在适当的属性中为 python310.dll 设置了正确的路径和文件名,但没有机会正常运行并且总是得到

Error 87: Could not open Dll "python33.dll"

Python could not be properly initialized. We must quit.

I had the same issue.我遇到过同样的问题。 Reinstall python worked for me.重新安装 python 对我有用。 But this time i maked sure that was installing the same architecture that i was compiling the code to.但这次我确保安装的架构与我编译代码的架构相同。 I reinstall python 3.10 on 32bits and worked for me, cuz i was compiling on win32我在 32 位上重新安装了 python 3.10 并为我工作,因为我在 win32 上编译

There is an error in pythonengine.pas. pythonengine.pas 中有错误。 on line 9075 change在线 9075 更改

MinorVersion := PythonVersion[3];

to

MinorVersion := StrToInt(copy(PythonVersion, 3, length(PythonVersion) - 2));

the MinorVersion is incorrectly set to 1 for version 3.10. 3.10 版的 MinorVersion 错误地设置为 1。

LS, I made the correction proposed by Bahktari\/Franse in file pythonengine.pas, recompiled the package, removed\/replaced the Python_D260.bpl package but still got the same error. LS,我在 pythonengine.pas 文件中进行了 Bahktari\/Franse 提出的更正,重新编译了包,删除\/替换了 Python_D260.bpl 包,但仍然出现相同的错误。 in P4D Demo1 runs but crashes ("violation"), Demo2 fails, P4DTests still gives python33.dll error.在 P4D Demo1 中运行但崩溃(“违规”),Demo2 失败,P4DTests 仍然给出 python33.dll 错误。

"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM