栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

搭建Paddle环境(GPU版)

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

搭建Paddle环境(GPU版)

搭建Paddle环境(GPU版)

装这个PaddleOCR https://github.com/PaddlePaddle/PaddleOCR

大体上可以按照官网的流程来

过程中踩了一些坑:

1.先是pip过程中报这个错

building ‘Levenshtein._levenshtein’ extension
error: Microsoft Visual C*+ 14.0 or greater is required.bet it with 'llicrosoft C** Build Tools" : https:/visualstudiomicrosoft.com/visual-cpp-build-tools/

解决:直接下载对应的wheel文件安装(在这个网站找Archived: Python Extension Packages for Windows - Christoph Gohlke (uci.edu))

pip install lib_name

2.接下来,cuda的版本又不对了

RuntineErrar:(Preconditionotiret)The thirdh-party dynamic library (cudmno4 7.1) that Parble depends on is not confinunred conmeotly.(eror code is 1e)suggestions:
1.Check if the thind-party dynanic library (e.g.CUOA,CUDM)is installed conrectly and its version is matched mith padtepadrdle you installed ,2. Configure third-party dynamic library environment variables

官方给出的推荐环境:

  • PaddlePaddle >= 2.1.2
  • Python 3.7
  • CUDA 10.1 / CUDA 10.2
  • cuDNN 7.6

本机的显卡

参考此文章安装CUDA即cudnn
Win10卸载原有CUDA+安装新CUDA+cudnn_那记忆微凉的博客-CSDN博客_cuda 卸载

别忘了配完环境变量之后重启电脑


环境测试
import paddle

paddle.utils.run_check()

得到以上输出,说明环境搭建完毕。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/998438.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号