Код: Выделить всё
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
Код: Выделить всё
$sudo apt-get install python3-opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-opencv is already the newest version (4.2.0+dfsg-5).
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
Код: Выделить всё
import cv2, sys, numpy, os
ImportError: No module named cv2
Подробнее здесь: https://stackoverflow.com/questions/791 ... nvironment
Мобильная версия