Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

电脑更新GPU后出现ImportError: DLL load failed while importing libpaddle: %1 不是有效的 Win32 应用程序。 #70157

Open
minghua-123 opened this issue Dec 12, 2024 · 4 comments
Assignees

Comments

@minghua-123
Copy link

bug描述 Describe the Bug

Error: Can not import paddle core while this file exists: C:\Users\wmh21\AppData\Local\Programs\Python\Python311\Lib\site-packages\paddle\base\libpaddle.pyd
Traceback (most recent call last):
  File "e:\UIE-docker\server\server_new_1.py", line 3, in <module>
    from paddlenlp import Taskflow
  File "C:\Users\wmh21\AppData\Local\Programs\Python\Python311\Lib\site-packages\paddlenlp\__init__.py", line 44, in <module>
    import paddle
  File "C:\Users\wmh21\AppData\Local\Programs\Python\Python311\Lib\site-packages\paddle\__init__.py", line 37, in <module>
    from .base import core  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\wmh21\AppData\Local\Programs\Python\Python311\Lib\site-packages\paddle\base\__init__.py", line 38, in <module>
    from . import (  # noqa: F401
  File "C:\Users\wmh21\AppData\Local\Programs\Python\Python311\Lib\site-packages\paddle\base\backward.py", line 28, in <module>
    from . import core, framework, log_helper, unique_name
  File "C:\Users\wmh21\AppData\Local\Programs\Python\Python311\Lib\site-packages\paddle\base\core.py", line 380, in <module>
    raise e
  File "C:\Users\wmh21\AppData\Local\Programs\Python\Python311\Lib\site-packages\paddle\base\core.py", line 267, in <module>
    from . import libpaddle
ImportError: DLL load failed while importing libpaddle: %1 不是有效的 Win32 应用程序。

其他补充信息 Additional Supplementary Information

No response

@cuicheng01
Copy link
Contributor

您好,重新安装paddle试试呢?

@minghua-123
Copy link
Author

尝试过了,3.0.0b2和nightly都不行,目前正在重置电脑

@minghua-123
Copy link
Author

@cuicheng01 重装电脑系统后解决,目前有两个原因
1.最新版的英伟达驱动导致相关dll变化和内存读取报错
2.vc++库版本更新导致2015-2022无法注册

@sealoongleft
Copy link

我当时在英伟达的一个cudnn的一个库中找到了这个问题,nvidia说他们本来就需要得单独配置这个文件,但是pytorch直接把那个文件集成到他们的框架中了好像,而paddle则需要你自己配置,很简单的一个破dll文件而已,拖动到nvidia官方指定的位置就解决了。
我出现这个问题好像是在跑某个模型出现的,不是安装之后才会出现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants