Unable to install easyocr dependencies

Hi,
I tried to install easyocr using pip install easyocr. But unable to install it. It try to download all the version of easyocr and getting error. Im pasting the errror below.

C:\Users\subash>pip install easyocr
Collecting easyocr
  Using cached easyocr-1.7.1-py3-none-any.whl.metadata (11 kB)
INFO: pip is looking at multiple versions of easyocr to determine which version is compatible with other requirements. This could take a while.
  Using cached easyocr-1.7.0-py3-none-any.whl.metadata (14 kB)
  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)
INFO: pip is still looking at multiple versions of easyocr to determine which version is compatible with other requirements. This could take a while.
  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)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  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: Operation cancelled by user

C:\Users\subash>pip install easyocr==1.7.1
Collecting easyocr==1.7.1
  Using cached easyocr-1.7.1-py3-none-any.whl.metadata (11 kB)
INFO: pip is looking at multiple versions of easyocr to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement torch (from easyocr) (from versions: none)
ERROR: No matching distribution found for torch

The errors tell us that easyocr requires torch, and that there is not any version of torch available for your version of Python.

What result do you get from pip inspect --path ""? (This will confirm the version of Python being used by Pip, according to the way you are currently running Pip.)

2 Likes

[subash-26] subash https://discuss.python.org/u/subash-26 subash-26
January 28

Hi,

I tried to install easyocr using pip install easyocr. But unable to
install it. It try to download all the version of easyocr and getting
error. Im pasting the errror below. |

The actual error is here:

ERROR: Could not find a version that satisfies the requirement torch
(from easyocr) (from versions: none)
ERROR: No matching distribution found for torch

The PyTorch project has not released wheels for Python 3.12, so no
matter which version pip tries of the project you’re actually after, it
can’t find a version of the torch dependency that can be used, since
it’s actually a Python version incompatibility. Your answer is to use
Python 3.11.

You can follow the PyTorch progress here, if it interests you:

1 Like

Will Pip only use wheels for dependencies? It seems from the bug report like it should be possible to build Pytorch for 3.12 from source, although it might not work properly.

Pytorch intentionally doesn’t upload sdists in order to prevent people from shooting themselves in the foot.

1 Like