Files
QingLong/AI/Pdf/配置环境.md
2025-08-15 09:13:13 +08:00

93 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 1、查看有哪些环境
```cmd
conda info --envs
```
```angular2html
# conda environments:
#
base D:\anaconda3
py310 D:\anaconda3\envs\py310
* d:\anaconda3
```
### 2、激活环境
```cmd
conda activate py310
```
### 3、设置为默认源
升级pip + 配置pip使用清华源
``` cmd
python -m pip install --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
```
### 4、安装pip
```shell
pip install PyMuPDF
pip install opencv-python paddleocr
# 版本兼容性是深度学习应用中常见的问题特别是当库频繁更新时。推荐使用PaddlePaddle 2.5.2 + PaddleOCR最新版的组合这通常是最稳定的配置。
# 没用GPU的用这个
pip install paddlepaddle==2.5.2
# 有GPU的用这个
pip install paddlepaddle-gpu==2.5.2
# 卸载
pip uninstall paddlepaddle==2.5.2 -y
pip uninstall paddlepaddle-gpu==2.5.2 -y
# 更新
pip install --upgrade paddleocr
```
【保姆级】Windows 安装 CUDA 和 cuDNN
https://sspai.com/post/98397
https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda_12.9.1_576.57_windows.exe
10402852@qq.com
dsideal4r5t6y7u
[正确安装GPU显卡驱动、CUDA、cuDNN的详细教程](https://blog.csdn.net/qq_62928482/article/details/139674918)
我的笔记本显卡NVIDIA GeForce RTX 3060 Laptop GPU
**nvidia-smi**
NVIDIA-SMI 576.57 Driver Version: 576.57 CUDA Version: 12.9
[CUDA - Wikipedia](https://en.wikipedia.org/wiki/CUDA)
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/%7Byear%7D/%7Bmonth%7D/%7Bmd5%7D.%7BextName%7D/20250618074946862.png)
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/%7Byear%7D/%7Bmonth%7D/%7Bmd5%7D.%7BextName%7D/20250618075233227.png)
https://developer.download.nvidia.cn/compute/cuda/11.4.4/local_installers/cuda_11.4.4_472.50_windows.exe
10402852@qq.com
dsideal4r5t6y7u
方案介绍:
https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/algorithm/PP-StructureV3/PP-StructureV3.html
使用教程:
https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/pipeline_usage/PP-StructureV3.html
paddleocr pp_structurev3 -i https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/pp_structure_v3_demo.png