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
1,352 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
• 80,790 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
517 views
+1 vote
10 answers

How to fix this? ValueError: invalid literal for int() with base 10 error in Python

Just for the record: >>> int('55063.000000') Traceback (most recent ...READ MORE

answered Aug 17 in Python by pakainfo
• 200 points
186,588 views
+1 vote
3 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
4,647 views
0 votes
1 answer
0 votes
1 answer

How to find the value of a row in a csv file in python and print column and row of that value ?

Hello @Khanhh , Use panda to find the value of ...READ MORE

answered Oct 15 in Python by Niroj
• 80,580 points
243 views
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
275 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
• 80,790 points
5,453 views
0 votes
3 answers

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

Hi @ Prajwala  All the members here, I ...READ MORE

answered Sep 14 in Python by Richa sharma
2,561 views