pip in venv does not see that python3-opencv is already installed

Bug #1949030 reported by udifuchs
6
This bug affects 1 person
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-site-packages tmp
./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/python3/dist-packages (1.19.5)

The problem seems to be that numpy installs the folder:
/usr/lib/python3/dist-packages/numpy-1.19.5.egg-info/

While opencv does not create any such egg-info folder.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: python3-opencv 4.5.3+dfsg-1ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-20.20-generic 5.13.14
Uname: Linux 5.13.0-20-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
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-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: opencv
UpgradeStatus: Upgraded to impish on 2021-10-27 (0 days ago)

Tags: apport-bug
Revision history for this message
udifuchs (udifuchs) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.