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
4,998 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,460 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
1,987 views
+2 votes
10 answers

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

The following are totally acceptable in python: passing ...READ MORE

answered Nov 16, 2018 in Python by Nymeria
• 3,560 points
409,220 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,560 points
9,430 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,840 points
6,767 views
0 votes
1 answer
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,460 points
13,458 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
33,061 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP