在安装 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.
网友评论