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

liwlm1x9  于 2022-12-12  发布在  Python
关注(0)|答案(1)|浏览(639)

我试着按照每个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.

有什么问题吗?

2guxujil

2guxujil1#

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

相关问题