Reputation: 75
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
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
Reputation: 986
Follow These Steps in this Tutorial:-
https://itsfoss.com/install-pycharm-ubuntu/
Upvotes: -1