如何安装Delphi 4 Python?导入错误:导入 DelphiVCL 时 DLL 加载失败:找不到指定的模块

问题描述 投票:0回答:2

我尝试按照 Embarcadero 教程中的步骤进行操作:

pip install delphivcl
Collecting delphivcl
  Using cached delphivcl-0.1.24-cp311-cp311-win_amd64.whl
Installing collected packages: delphivcl
Successfully installed delphivcl-0.1.24

Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from delphivcl import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python311\Lib\site-packages\delphivcl\__init__.py", line 22, in <module>
    package = new_import()
              ^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\site-packages\delphivcl\__init__.py", line 15, in new_import
    ld = loader.create_module(spec)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: DLL load failed while importing DelphiVCL: The specified module could not be found.

有什么问题?

python delphi vcl
2个回答
0
投票

不支持 Python 3.11.0 截至目前支持的最后一个是 Python 3.10.8


0
投票

德尔福11.3 使用 Python PythonEngine1 组件出现 python311.dll enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.