Python3.6 installiert opencv und stellt einen Fehler fest. Wie unten gezeigt:
pip install opencv-python
Fehler.
Please check the install target is valid and see CMake's output for more information.
----------------------------------------
ERROR: Failed building wheel for opencv-python
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
Der Grund dafür ist, dass die neueste Version mit dem Befehl pip install opencv-python
installiert wird , was von Python3.6 nicht unterstützt wird. Suchen Sie also eine Version, die von Python3.6 unterstützt wird. z.B. opencv-python==4.3.0.38
.
pip install -i https://pypi.douban.com/simple/ pip install opencv-python==4.3.0.38