4 ms·
IMO, either use system python and system python packages (`apt install python-opencv`), or if you need pip packages that aren’t debian packaged, use pyenv pytho
by rjeli 6y ago
IMO, either use system python and system python packages (`apt install python-opencv`), or if you need pip packages that aren’t debian packaged, use pyenv python which takes care of all the pip prefixes. Mixing the two has never gone well for me.
- ohazi 6y agoThat's not always possible. If you install a package from the system repository that depends on a bunch of python packages, the dependency manager will only be satisfied if they're installed via the repository, since it can't see your pip packages. So you might need the latest python-opencv from pypi for work, and some desktop camera app needs the one from apt to not have broken dependencies.
- Conan_Kudo 6y agoYou can create virtualenvs that can "see" system-installed Python modules, so this strategy does in fact work. System modules can be used as dependencies for non-system applications with this.
- viraptor 6y agoYou're not going to run into this issue though. Apt-installed python packages will see each other and pip-installed venv packages will live in a separate area. They don't conflict.