python easyocr安装
在公司安装easyocr报错,环境是python3.10
PS D:\project\python\yibutong> pip install easyocr
Collecting easyocr
Using cached easyocr-1.4.1-py3-none-any.whl (63.6 MB)
Collecting Pillow<8.3.0
Using cached Pillow-8.2.0.tar.gz (47.9 MB)
Preparing metadata (setup.py) ... done
Collecting scipy
Using cached scipy-1.7.3-cp310-cp310-win_amd64.whl (34.3 MB)
Collecting opencv-python-headless
Using cached opencv_python_headless-4.5.4.60-cp310-cp310-win_amd64.whl (35.0 MB)
Collecting numpy
Using cached numpy-1.21.4-cp310-cp310-win_amd64.whl (14.0 MB)
Collecting easyocr
Using cached easyocr-1.4-py3-none-any.whl (63.6 MB)
Collecting Pillow
Using cached Pillow-8.4.0-cp310-cp310-win_amd64.whl (3.2 MB)
Collecting easyocr
Using cached easyocr-1.3.2-py3-none-any.whl (63.2 MB)
Using cached easyocr-1.3.1-py3-none-any.whl (63.2 MB)
Using cached easyocr-1.3.0.1-py3-none-any.whl (63.0 MB)
Using cached easyocr-1.3-py3-none-any.whl (63.0 MB)
Using cached easyocr-1.2.5.1-py3-none-any.whl (62.3 MB)
Using cached easyocr-1.2.5-py3-none-any.whl (62.3 MB)
Using cached easyocr-1.2.4-py3-none-any.whl (62.3 MB)
Using cached easyocr-1.2.3-py3-none-any.whl (62.3 MB)
Using cached easyocr-1.2.2-py3-none-any.whl (62.3 MB)
Using cached easyocr-1.2.1-py3-none-any.whl (57.2 MB)
Using cached easyocr-1.2-py3-none-any.whl (57.2 MB)
Using cached easyocr-1.1.10-py3-none-any.whl (48.9 MB)
Using cached easyocr-1.1.9-py3-none-any.whl (48.4 MB)
Using cached easyocr-1.1.8-py3-none-any.whl (48.4 MB)
Using cached easyocr-1.1.7-py3-none-any.whl (48.4 MB)
Using cached easyocr-1.1.6-py3-none-any.whl (48.4 MB)
Using cached easyocr-1.1.5-py3-none-any.whl (43.1 MB)
Using cached easyocr-1.1.4-py3-none-any.whl (22.5 MB)
Using cached easyocr-1.1.3-py3-none-any.whl (13.5 MB)
Collecting Pillow<7.0
Using cached Pillow-6.2.2.tar.gz (37.8 MB)
Preparing metadata (setup.py) ... done
Collecting easyocr
Using cached easyocr-1.1.2-py3-none-any.whl (8.8 MB)
Using cached easyocr-1.1.1-py3-none-any.whl (8.5 MB)
Using cached easyocr-1.1-py3-none-any.whl (8.5 MB)
Using cached easyocr-1.0.tar.gz (8.5 MB)
Preparing metadata (setup.py) ... done
ERROR: Cannot install easyocr==1.0, easyocr==1.1, easyocr==1.1.1, easyocr==1.1.10, easyocr==1.1.2, easyocr==1.1.3, easyocr==1.1.4, easyocr==1.1.5, easyocr==1.1.6, easyocr==1.1.7, easyocr==1.1.8, easyocr==1.1.9, easyocr==1.2, easyocr==1.2.1, easyocr==1.2.2, easyocr==1.2
.3, easyocr==1.2.4, easyocr==1.2.5, easyocr==1.2.5.1, easyocr==1.3, easyocr==1.3.0.1, easyocr==1.3.1, easyocr==1.3.2, easyocr==1.4 and easyocr==1.4.1 because these package versions have conflicting dependencies.
The conflict is caused by:
easyocr 1.4.1 depends on torcheasyocr 1.4 depends on torch
easyocr 1.3.2 depends on torch
easyocr 1.3.1 depends on torch
easyocr 1.3.0.1 depends on torch
easyocr 1.3 depends on torch
easyocr 1.2.5.1 depends on torch
easyocr 1.2.5 depends on torch
easyocr 1.2.4 depends on torch
easyocr 1.2.3 depends on torch
easyocr 1.2.2 depends on torch
easyocr 1.2.1 depends on torch
easyocr 1.2 depends on torch
easyocr 1.1.10 depends on torch
easyocr 1.1.9 depends on torch
easyocr 1.1.8 depends on torch
easyocr 1.1.7 depends on torch
easyocr 1.1.6 depends on torch
easyocr 1.1.5 depends on torch
easyocr 1.1.4 depends on torch
easyocr 1.1.3 depends on torch
easyocr 1.1.2 depends on torch
easyocr 1.1.1 depends on torch
easyocr 1.1 depends on torch
easyocr 1.0 depends on torch
To fix this you could try to:
- loosen the range of package versions you've specified
- remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest...
回答:
报冲突,先搞个虚拟环境吧。https://docs.python.org/zh-cn/3/library/venv.html
已参与了 SegmentFault 思否社区 10 周年「问答」打卡 ,欢迎正在阅读的你也加入。
以上是 python easyocr安装 的全部内容, 来源链接: utcz.com/p/938170.html