Euxinus
@Euxinus

Ошибка при установки easyocr. Какие зависимости нужны для easyocr?

устанавливаю командой в PyCharm (windows 10):

pip install easyocr

получаю вывод:

Collecting easyocr
  Using cached easyocr-1.6.2-py3-none-any.whl (2.9 MB)
  Using cached easyocr-1.6.1-py3-none-any.whl (2.9 MB)
  Using cached easyocr-1.6.0-py3-none-any.whl (21.0 MB)
  Using cached easyocr-1.5.0-py3-none-any.whl (70.8 MB)
  Using cached easyocr-1.4.2-py3-none-any.whl (70.8 MB)
  Using cached easyocr-1.4.1-py3-none-any.whl (63.6 MB)
  Using cached easyocr-1.4-py3-none-any.whl (63.6 MB)
  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)
  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, easyocr==1.4.1, easyoc
r==1.4.2, easyocr==1.5.0, easyocr==1.6.0, easyocr==1.6.1 and easyocr==1.6.2 because these package versions have conflicting dependencies. 

The conflict is caused by:
    easyocr 1.6.2 depends on torch
    easyocr 1.6.1 depends on torch
    easyocr 1.6.0 depends on torch
    easyocr 1.5.0 depends on torch
    easyocr 1.4.2 depends on torch
    easyocr 1.4.1 depends on torch
    easyocr 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:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts    
(venv) PS C:\Users\null\PycharmProjects\identifier>


Перехожу по ссылке в документацию > устанавливаю необходимые зависимости как там указано:

python -m pip install "pytest < 4.6" pytest-cov==2.12.1

и снова получаю сообщение об ошибке:

ERROR: Cannot install pytest-cov==2.12.1 and pytest<4.6 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested pytest<4.6 pytest-cov 2.12.1 depends on pytest>=4.6

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/topics/dependency-resolution/#dealing-with-dependency-conflicts
  • Вопрос задан
  • 450 просмотров
Пригласить эксперта
Ответы на вопрос 1
Lord_of_Rings
@Lord_of_Rings
Python developer
Поробуйте это
pip install git+https://github.com/JaidedAI/EasyOCR.git
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы