faustomorales / keras-ocr

A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
https://keras-ocr.readthedocs.io/
MIT License
1.36k stars 347 forks source link

Error while import package #238

Open hendrimardani opened 11 months ago

hendrimardani commented 11 months ago

Collecting keras-ocr Cloning https://github.com/faustomorales/keras-ocr.git to /tmp/pip-install-g30hgi_g/keras-ocr_ce9075718baf4a17b689638abd020e5c Running command git clone --filter=blob:none --quiet https://github.com/faustomorales/keras-ocr.git /tmp/pip-install-g30hgi_g/keras-ocr_ce9075718baf4a17b689638abd020e5c Resolved https://github.com/faustomorales/keras-ocr.git to commit b9c5a5871368fc337cbb6cd8f427b64a08626421 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting editdistance (from keras-ocr) Using cached editdistance-0.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB) Collecting efficientnet==1.0.0 (from keras-ocr) Using cached efficientnet-1.0.0-py3-none-any.whl (17 kB) Collecting essential_generators (from keras-ocr) Using cached essential_generators-1.0-py3-none-any.whl (9.5 MB) Requirement already satisfied: fonttools in /opt/conda/lib/python3.10/site-packages (from keras-ocr) (4.40.0) Requirement already satisfied: imgaug in /opt/conda/lib/python3.10/site-packages (from keras-ocr) (0.4.0) Requirement already satisfied: pyclipper in /opt/conda/lib/python3.10/site-packages (from keras-ocr) (1.3.0.post4) Requirement already satisfied: shapely in /opt/conda/lib/python3.10/site-packages (from keras-ocr) (1.8.5.post1) Requirement already satisfied: tqdm in /opt/conda/lib/python3.10/site-packages (from keras-ocr) (4.65.0) Collecting validators (from keras-ocr) Using cached validators-0.20.0.tar.gz (30 kB) Preparing metadata (setup.py) ... done INFO: pip is looking at multiple versions of keras-ocr to determine which version is compatible with other requirements. This could take a while. ERROR: Package 'keras-ocr' requires a different Python: 3.10.12 not in '<3.10,>=3.7.5'

How solve it ?