=2.2" 时发现 AttributeError: 'Di...">
美文网首页
2022-08-09-pip 安装出现问题

2022-08-09-pip 安装出现问题

作者: 破阵子沙场秋点兵 | 来源:发表于2022-08-09 10:39 被阅读0次

在安装 pip install "paddleocr>=2.2" 时发现

AttributeError: 'Distribution' object has no attribute 'convert_2to3_doctests'

将setuptools进行降级就可以安装了
pip install setuptools==41.0.0
原因来自 https://github.com/pypa/setuptools/issues/1086

JasonMWhite:
This checks out. A minimum reproducible test case had a requirements.txt file of just setuptools==36.5.0 and pylint==1.7.2. Looks like pylint is compiling wrapt in the installation, which is sufficient to trigger this bug.
Added a new line to my .travis.yml file to pip install setuptools==36.5.0 before pip install -r requirements.txt solved the problem for me, just in case anyone else hits the same issue.

相关文章

网友评论

      本文标题:2022-08-09-pip 安装出现问题

      本文链接:https://www.haomeiwen.com/subject/irqnwrtx.html