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.
Check your python version and set accordingly.
To check python version, use the below given command.
$ python -V
Hope this will solve your error.