In Python ,After installing pip Install python-opencv module , still the error raise that no module named 'cv2' and unable to import .....how to fix this error ?????

0 votes
Apr 7 in Python by anonymous
• 120 points
538 views

1 answer to this question.

0 votes

Hi,

If you successfully installed opencv in your system and still you are getting the same error, than try to add python environment variable in .bashrc file.

export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH

Check your python version and set accordingly.

To check python version, use the below given command.

$ python -V

Hope this will solve your error.

answered Apr 8 by MD
• 41,660 points

Related Questions In Python

0 votes
1 answer

How to resolve the error while importing cv2 from openCV in python?

I would recommend you go with anaconda ...READ MORE

answered Jul 31, 2019 in Python by Mohammad
• 3,210 points
369 views
+1 vote
6 answers
+1 vote
2 answers
0 votes
1 answer

Getting AttributeError: 'module' object (scipy) has no attribute 'misc' in Python. How to solve this?

>>> import scipy >>> scipy.misc Traceback (most recent call ...READ MORE

answered Dec 24, 2018 in Python by Nymeria
• 3,520 points
3,657 views
0 votes
1 answer
0 votes
1 answer

How to install Python MySQLdb module using pip?

It's easy to do, but hard to ...READ MORE

answered Aug 20, 2018 in Python by charlie_brown
• 7,780 points
185 views
+1 vote
1 answer

How to install a module in Python 3.6 ?

If you are using Ubuntu then the ...READ MORE

answered Jun 25, 2019 in Python by Arvind
• 2,980 points
216 views
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27 in Python by MD
• 41,660 points
1,508 views
0 votes
2 answers

i am installing wordcloud using pip but i am unable to do that ....i am getting the following error

Hi@Prajwala, First check your pip and python version ...READ MORE

answered Apr 15 in Python by MD
• 41,660 points
1,715 views