操作系统:MacOS Monterey 12.6.5
编程环境:conda create -n latex python=3.8
已安装包:pip3 install torch torchvision torchaudio
错误描述:pip3 install pix2tex
时出现
zsh: no matches found: pix2tex[gui]
修复方法:
pip3 install "pix2tex[gui]"
错误描述:latexocr
时出现
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘github.com’, port=443): Max retries exceeded with url: /lukas-blecher/LaTeX-OCR/releases/download/v0.0.1/weights.pth (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)’)))
修复方法:
修复结果:
download weights v0.0.1 to path /opt/anaconda3/envs/latex/lib/python3.8/site-packages/pix2tex/model/checkpoints
文件下载至或放至该目录后,就可以单机使用了,重新输入latexocr
: