Skip to content

安装paddle2.6 验证时 import paddle 出错 #1042

@lghsrchcn

Description

@lghsrchcn

安装paddle2.6(Python 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.),验证时出现以下问题,请教一下,怎么解决?

import paddle
Error: Can not import paddle core while this file exists: C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\libpaddle.pyd
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\core.py", line 268, in
from . import libpaddle
ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle_init_.py", line 28, in
from .base import core # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base_init_.py", line 36, in
from . import core
File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\core.py", line 375, in
if not avx_supported() and libpaddle.is_compiled_with_avx():
^^^^^^^^^
NameError: name 'libpaddle' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions