Public bug reported:

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)

** Affects: opencv (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1949030

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/1949030/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to