PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
21.66k stars 5.44k forks source link

Unable to install paddlepaddle-gpu with Cuda 12 on Windows #64031

Closed KomodoCrypto closed 2 weeks ago

KomodoCrypto commented 2 weeks ago

问题描述 Issue Description

I have no issues installing and running the cpu version. However, when I install the gpu version, I get an error in paddleocr import that can't be resolved. This seems to be mainly because paddleocr is not present in site-packages. However, the installation seems to had completed properly:

Installing collected packages: paddlepaddle-gpu Successfully installed paddlepaddle-gpu-2.6.1

Context: Windows 11 Pro, cuda_12.2.r12.2, python 3.11.4, Nvidia RTX4050

After the installation, my site-packages folder looks like,

image

Shouldn't be paddleocr package after the installation? Or should I install paddleocr separetely?

Please let me know if you need more information. Thank you

版本&环境信息 Version & Environment Information

Paddle version: 2.6.1 Paddle With CUDA: True

OS: Windows 10 GCC version: N/A Clang version: N/A CMake version: N/A Libc version: N/A Python version: 3.11.4

CUDA version: 12.2.128 Build cuda_12.2.r12.2/compiler.33053471_0 cuDNN version: N/A Nvidia driver version: 551.23 Nvidia driver List: GPU 0: NVIDIA GeForce RTX 4050 Laptop GPU

KomodoCrypto commented 2 weeks ago

I managed to solve it with a clean install. Now I am getting the error ImportError: generic_type: type "_gpuDeviceProperties" is already registered! That is annoter issue.