Skip to content
Advertisement

pip freeze doesn’t show opencv in Linux/Mint

I’ve installed OpenCV on Linux Mint and I can import it in python

JavaScript

But when I want to see it in pip freeze, it doesn’t appear:

JavaScript

Also, I tried to import it via PyCharm’s Project Interpreter. It wants to installation with pip. (pip install opencv-python and pip install cv2)

When I installed that, I followed these steps

What is the problem that I cannot see?

Advertisement

Answer

Those instructions are outdated, and using apt-get puts pieces outside of the virtual environment, where pip won’t see them to freeze.

Within a virtual environment, try

JavaScript

The --upgrade might not be necessary, but has helped me out of weird pip failures in the past.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement