Код: Выделить всё
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.
Код: Выделить всё
$ python -c "import opencv as cv2"
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named opencv
Подробнее здесь: https://stackoverflow.com/questions/791 ... nvironment
Мобильная версия