Installationsanleitung:
pip install opencv-python -i https://pypi.douban.com/simple/
Der Fehler ist wie folgt:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'd:\\anaconda3\\envs\\pytorch\\lib\\site-packages\\numpy-1.21.6.dist-info\\METADATA'
Lösung:
Suchen Sie gemäß dem Pfad im Fehlerbericht nach „numpy-1.21.6.dist-info“ und löschen Sie es
Es kann erfolgreich installiert werden: