系统环境:
WIN10家庭版
CUDA10.0
jupyter notebook 6.0.3
conda虚拟环境:
Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]
IPython 7.19.0
在虚拟环境下用conda install paddlepaddle-gpu==1.8.5 cudatoolkit=10.0安装
anaconda prompt里运行python,验证paddle安装一切正常:
>>> import paddle.fluid
>>> paddle.fluid.install_check.run_check()
Running Verify Fluid Program ...
Your Paddle Fluid works well on SINGLE GPU or CPU.
W1108 12:52:11.949554 8996 build_strategy.cc:170] fusion_group is not enabled for Windows/MacOS now, and only effective when running with CUDA GPU.
Your Paddle Fluid works well on MUTIPLE GPU or CPU.
Your Paddle Fluid is installed successfully! Let's start deep Learning with Paddle Fluid now
但在jupyter notebook里跑import paddle.fluid报错:
ImportError Traceback (most recent call last)
in
----> 1 import paddle.fluid
d:\anaconda3\envs\py3701\lib\site-packages\paddle\__init__.py in
37 import paddle.complex
38
---> 39 from . import incubate
40 from .incubate import hapi
d:\anaconda3\envs\py3701\lib\site-packages\paddle\incubate\__init__.py in
13 # limitations under the License.
14
---> 15 from . import hapi
16
17 __all__ = []
d:\anaconda3\envs\py3701\lib\site-packages\paddle\incubate\hapi\__init__.py in
14
15 from . import distributed
---> 16 from . import vision
17
18 __all__ = ['distributed', 'vision']
d:\anaconda3\envs\py3701\lib\site-packages\paddle\incubate\hapi\vision\__init__.py in
13 # limitations under the License.
14
---> 15 from . import transforms
16 from .transforms import *
17
d:\anaconda3\envs\py3701\lib\site-packages\paddle\incubate\hapi\vision\transforms\__init__.py in
13 # limitations under the License.
14
---> 15 from . import transforms
16
17 from .transforms import *
d:\anaconda3\envs\py3701\lib\site-packages\paddle\incubate\hapi\vision\transforms\transforms.py in
16
17 import sys
---> 18 import cv2
19 import random
20
ImportError: DLL load failed: 找不到指定的模块。