'pip freeze not showing package
For some reason I can't see opencv printing via pip freeze, however I can import it.
pip freeze | grep opencv
pip3 freeze | grep opencv
python -c "import cv2; print(cv2.__file__)"
/usr/local/lib/python3.6/dist-packages/cv2.cpython-36m-x86_64-linux-gnu.so
python -c "import cv2; print(cv2.__version__)"
3.4.2
python3 -c "import cv2; print(cv2.__file__)"
/usr/local/lib/python3.6/dist-packages/cv2.cpython-36m-x86_64-linux-gnu.so
python3 -c "import cv2; print(cv2.__version__)"
3.4.2
python -V
Python 3.6.8
python3 -V
Python 3.6.8
pip -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
pip3 -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
I have alias for python3 in bashrc:
cat ~/.bashrc | tail
alias python=python3
alias pip=pip3
Ubuntu version:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
Solution 1:[1]
When you freeze the packages by pip, it will show the packages installed by pip and opencv may not be installed through pip.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Lamanus |
