pip in venv does not see that python3-opencv is already installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
opencv (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have the python3-opencv packaged installed.
Still if I create a venv with system site packages and try to install opencv:
python3 -m venv --system-
./tmp/bin/pip install opencv-python
It will install opencv from pypi instead of ignoring it as it does for numpy for example:
./tmp/bin/pip install numpy
Requirement already satisfied: numpy in /usr/lib/
The problem seems to be that numpy installs the folder:
/usr/lib/
While opencv does not create any such egg-info folder.
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: python3-opencv 4.5.3+dfsg-1ubuntu1
ProcVersionSign
Uname: Linux 5.13.0-20-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 27 22:28:12 2021
InstallationDate: Installed on 2020-01-07 (659 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: opencv
UpgradeStatus: Upgraded to impish on 2021-10-27 (0 days ago)