Python基础
踏歌行 2024-10-01
语言
阅读量:
# IDE
# 下载库和引用
# python版本查询
cmd中,确认python正确安装:
>>> import sys
>>> print(sys.version)
3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
1
2
3
2
3
在pycharm中的,下方运行按钮下的Python软件包中寻找和安装
# pip
- 安装: 在powershell中
PS C:\XXX> pip install pdfplumber
Collecting pdfplumber
Downloading pdfplumber-0.11.4-py3-none-any.whl.metadata (41 kB)
...
Downloading cryptography-43.0.1-cp39-abi3-win_amd64.whl (3.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 5.3 MB/s eta 0:00:00
Downloading cffi-1.17.1-cp312-cp312-win_amd64.whl (181 kB)
Downloading pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: pypdfium2, pycparser, Pillow, charset-normalizer, cffi, cryptography, pdfminer.six, pdfplumber
Successfully installed Pillow-10.4.0 cffi-1.17.1 charset-normalizer-3.3.2 cryptography-43.0.1 pdfminer.six-20231228 pdfplumber-0.11.4 pycparser-2.22 pypdfium2-4.30.0
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
- 安装目录
PS C:\Users\XXX> pip show pytesseract
Name: pytesseract
Version: 0.3.13
License: Apache License 2.0
Location: C:\Users\XXX\AppData\Local\Programs\Python\Python312\Lib\site-packages
1
2
3
4
5
2
3
4
5
# 解析图片型pdf
代码 (opens new window) Windows如何安装poppler库 (opens new window) Github下载poppler windows (opens new window)
# tesseract安装
pytesseract是一个基于Python的OCR(光学字符识别)工具
tesseract安装 (opens new window)
- *将项目中的tessaract替换为全局的:csdn文章 (opens new window)
- 安装CMAKE (opens new window)