mittagessen / kraken

OCR engine for all the languages
http://kraken.re
Apache License 2.0
750 stars 131 forks source link

Solving environment: failed. ResolvePackageNot Found #417

Closed robinscheurwater closed 1 year ago

robinscheurwater commented 1 year ago

When I try to install kraken I get the following error:

Solving environment: failed

ResolvePackageNotFound:
  - conda-forge::pytorch[version='>=1.7.1,<1.14']
  - imagemagick[version='>=7.1.0']
  - conda-forge::torchvision
  - coremltools[version='>=3.3']
  - pyvips

when entered:

git clone https://github.com/mittagessen/kraken.git
cd kraken
conda env create -f environment_cuda.yml

Please help. Thank you.

mittagessen commented 1 year ago

Are you trying to install kraken on Windows are some other weird operating system/hardware? It is possible that the dependencies won't be able to be resolved on there (and we can't guarantee support for these platforms anyway).

robinscheurwater commented 1 year ago

I will be honest to you. I don't have much experience with linux. What I've tried is to install kraken on Ubuntu 20.04 on WSL2. I also tried to install kraken by entering the same commands in Anaconda Prompt on Windows which also failed. Eventually I managed to install kraken with pip install on Ubuntu 20.04 on WSL2 so without conda. I'm now running ketos train: image

mittagessen commented 1 year ago

As you're running on Ubuntu on top of Windows I assume that there weren't any pytorch packages built for your platform in anaconda so the resolve failed. Glad to see that it is working now.