python安装tesserocr时候出现如下错误:
1.ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
解决方法:更新setuptools,输入命令如下:
python -m pip install --upgrade setuptools
2.错误为:
ERROR: Command errored out with exit status 1: ‘c:\python38\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\sumengtin\AppData\Local\Temp\pip-install-fse30vja\tesserocr\setup.py’"’"’; file=’"’"‘C:\Users\sumengtin\AppData\Local\Temp\pip-install-fse30vja\tesserocr\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:\Users\sumengtin\AppData\Local\Temp\pip-record-az0i4_x7\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘c:\python38\Include\tesserocr’ Check the logs for full command output.
解决方法:
1)打开cmd,输入python,查看下载的python是什么版本
2)在https://www.lfd.uci.edu/~gohlke/pythonlibs/这个网址中找到wordcloud对应的版本,cp38是python3.8版本,amd64是windows64位
3)输入命令pip install wordcloud-1.7.0-cp38-cp38-win_amd64.whl下载