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 8, 2020 in Python by anonymous
• 120 points
3,094 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, 2020 by MD
• 95,340 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,230 points
905 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, 2020 in Python by pakainfo
• 200 points
356,030 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,540 points
7,475 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, 2020 in Python by Niroj
• 82,680 points
3,892 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,710 points
566 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, 2020 in Python by MD
• 95,340 points
10,836 views
0 votes
3 answers

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

word cloud is not supported for python ...READ MORE

answered Apr 15, 2020 in Python by anonymous
19,247 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP