在安装了pandlepandle-gpu==2.4.2以后,在我的python解释器里显示PaddlePaddle is installed successfully!
代码如下:
(PaddleNLP-develop) C:\Users\Lenovo>python
Python 3.7.16 (default, Jan 17 2023, 16:06:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
>>> paddle.utils.run_check()
Running verify PaddlePaddle program ...
W0628 14:13:15.723146 20320 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 12.1, Runtime API Version: 11.7
W0628 14:13:15.984445 20320 gpu_resources.cc:91] device: 0, cuDNN Version: 8.4.
PaddlePaddle works well on 1 GPU.
PaddlePaddle works well on 1 GPUs.
PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.
但是我在pycharm里import paddle的时候出现如下报错:
Please note and check the following:
- The Python version is: Python3.7 from "C:\Users\Lenovo.conda\envs\PaddleNLP-develop\python.exe"
- The NumPy version is: "1.21.6"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed: 找不到指定的模块。
在jupyter notebook里运行报错如下:
Traceback (most recent call last):
File "evaluate.py", line 18, in
import paddle
ModuleNotFoundError: No module named 'paddle'
会是什么原因导致的呢?