参考

http://t.csdnimg.cn/f2mgE
http://t.csdnimg.cn/kvCCk


在搜安装mathpix的教程中,发现这篇文章中http://t.csdnimg.cn/f2mgE介绍了一个在github上开源的工具,想下载来试一试

安装命令

pip install "pix2tex[gui]"

最好加上--user 执行,不然可能报第二个错误:

pip install --user "pix2tex[gui]"

报错1

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'c:\\users\\hp\\anaconda3\\envs\\yolov5\\lib\\site-packages\\numpy-1.21.6.dist-info\\METADATA'
在这里插入图片描述
这是因为之前安装过numpy了,导致新安装的numpy中的numpy-1.21.6.dist-info目录中没有METADATA文件,如图所示:
在这里插入图片描述

解决
找到之前安装的numpy的numpy-1.21.6.dist-info文件夹,把上图中缺少的文件粘贴过来

我用everything工具检索到了这两个目录
在这里插入图片描述然后打开这两个目录复制粘贴一下没有的文件
在这里插入图片描述然后重新运行一下就不报这个错了

报错2

ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'c:\\users\\hp\\anaconda3\\envs\\yolov5\\lib\\site-packages\\~orch\\lib\\asmjit.dll' Consider using the --user option or check the permissions.
在这里插入图片描述

没有访问权限,加上--user

pip install --user "pix2tex[gui]"
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐