Lucifer
Lucifer

Reputation: 75

How do I install the open-cv library for use in Pycharm IDE on a Ubuntu 16.04 system using pip?

main.py : has line import cv2, but on running

python main.py and error is thrown.

EDIT:

pip install opencv-python installs cv2 package.

Upvotes: 3

Views: 5842

Answers (2)

Nathan Thompson
Nathan Thompson

Reputation: 335

Have you installed the package? Try running

pip install opencv-python

in the command line prompt, the proceed with import cv2 in a python console.

Upvotes: 4

Danushka herath
Danushka herath

Reputation: 986

Follow These Steps in this Tutorial:-

https://itsfoss.com/install-pycharm-ubuntu/

Upvotes: -1

Related Questions