'EasyOCR script run error - No module named 'torch.backends'

how to deal with such error during script run? Easyocr installed in the new env

File "C:\Users\user\Anaconda3\lib\site-packages\easyocr\detection.py", line 2, in <module>
    import torch.backends.cudnn as cudnn    


ModuleNotFoundError: No module named 'torch.backends'


Solution 1:[1]

Solved with pip3 install torchvision==0.6, this will install torch 1.5.0 as a dependency automatically.
currently easyocr neither working on the latest 1.11.0 version of torch, nor the 1.4.0 version of torch.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sreal