Seite 1 von 1

OpenCV Installation im anaconda prompt in windows 10 schlägt fehl

Verfasst: Donnerstag 23. Juli 2020, 09:50
von TomPyt
Hallo zusammen,

ich habe versucht opencv auf meinem Windows 10 Notebook im anaconda prompt zu installieren.

Leider schlägt die Installation fehl. Der Fehler ist folgender:


(base) C:\Users\czerny>conda install opencv
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed

CondaError: KeyboardInterrupt
Batchvorgang abbrechen (J/N)? j


Kann mir jemand bei dem Problem helfen.

Beste Grüße
TomPyt

Re: OpenCV Installation im anaconda prompt in windows 10 schlägt fehl

Verfasst: Donnerstag 23. Juli 2020, 10:06
von TomPyt
Ich habe es jetzt mit conda install opencv-python versucht und dann diese Meldung erhalten:

(base) C:\Users\czerny>conda install opencv-python
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

- opencv-python

Current channels:

- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Re: OpenCV Installation im anaconda prompt in windows 10 schlägt fehl

Verfasst: Donnerstag 23. Juli 2020, 11:06
von __deets__
Laut einer der Kanäle heißt das ja auch nur opencv. Ohne Python dahinter.

Re: OpenCV Installation im anaconda prompt in windows 10 schlägt fehl

Verfasst: Donnerstag 23. Juli 2020, 13:08
von TomPyt
__deets__ hat geschrieben: Donnerstag 23. Juli 2020, 11:06 Laut einer der Kanäle heißt das ja auch nur opencv. Ohne Python dahinter.
Zunächst habe ich es auch ohne "python" versucht und dabei eine Fehlermeldung erhalten.

Das "python" habe ich danach als alternative Lösung versucht.

Re: OpenCV Installation im anaconda prompt in windows 10 schlägt fehl

Verfasst: Donnerstag 23. Juli 2020, 13:10
von TomPyt
Ich habe jetzt festgestellt, dass es diverse Package Konflikte gibt. Hier ein Ausschnitt aus der Konfliktmeldung:

Package ipykernel conflicts for:
jupyter_console -> ipykernel
spyder-kernels -> ipykernel[version='>4.9.0|>=5.1.3|>=4.8.2']
jupyterlab_server -> notebook[version='>=4.2.0'] -> ipykernel
spyder -> qtconsole[version='>=4.6.0'] -> ipykernel[version='>4.9.0|>=4.1|>=5.1.3|>=4.8.2']
jupyterlab -> notebook[version='>=4.3.1'] -> ipykernel
anaconda==2020.02 -> ipywidgets==7.5.1=py_0 -> ipykernel[version='>=4.1|>=4.5.1|>=5.1.3']
ipywidgets -> ipykernel[version='>=4.5.1']
jupyter -> ipykernel
anaconda==2020.02 -> ipykernel==5.1.4[build='py38h39e3cac_0|py36h39e3cac_0|py37h39e3cac_0']
widgetsnbextension -> notebook[version='>=4.4.1'] -> ipykernel
_ipyw_jlab_nb_ext_conf -> ipywidgets -> ipykernel[version='>=4.5.1']
qtconsole -> ipykernel[version='>=4.1']
jupyter -> ipywidgets -> ipykernel[version='>=4.1|>=4.5.1']
notebook -> ipykernel

Package cytoolz conflicts for:
anaconda==2020.02 -> dask==2.11.0=py_0 -> cytoolz[version='>=0.7.3|>=0.7.4']
scikit-image -> cytoolz[version='>=0.7.3']
dask -> cytoolz[version='>=0.7.3|>=0.8.2']
anaconda==2020.02 -> cytoolz==0.10.1[build='py36he774522_0|py38he774522_0|py37he774522_0']
scikit-image -> dask[version='>=0.5'] -> cytoolz[version='>=0.8.2']
dask -> distributed[version='>=2.12.0'] -> cytoolz[version='>=0.7.4']
distributed -> cytoolz[version='>=0.7.4|>=0.8.2']

Nach dem gleichen Schema geht es dann mit ganz vielen anderen Paketen weiter.

Evtl. hilft das ja beim Finden eines Lösungsvorschlags.

Re: OpenCV Installation im anaconda prompt in windows 10 schlägt fehl

Verfasst: Donnerstag 23. Juli 2020, 13:20
von Jankie
Ich hab jetzt nur einen "Workaround" auf Stackoverflow gefunden.

Re: OpenCV Installation im anaconda prompt in windows 10 schlägt fehl

Verfasst: Donnerstag 23. Juli 2020, 14:54
von TomPyt
Vielen Dank für den Link. Ich habe schon einmal bei Stackoverflow geguckt, auf den Workaround bin ich aber noch nicht gestoßen.
Ich schaue mir mal an, was dort vorgeschlagen wird :)