操作系统: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:

在MacOSMonterey12.6.5环境下,使用conda创建的python3.8环境中,遇到pix2tex安装GUI组件的命令错误和LaTeX-OCR的SSLError问题。通过修正pip3install命令以及手动下载缺少的weights.pth文件到指定路径解决了问题,现在可以正常运行pix2tex和latexocr。
1285

被折叠的 条评论
为什么被折叠?



