i am using Ubuntu 14.04. I have a script which depends on pynotify. When the script is run outside any virtual environment then it runs fine (other dependencies also installed globally) but if i run the same script inside any virtual environment (other dependencies installed there as well), it doesn't work.
Then i thought that i would have been installed it globally earlier but it was not. I tried this (globally):
pip freeze | grep pynotify
But, it didn't give any result. Is there any explanation to this behavior?
Update your virtualenv environment to include system-site-packages:
Source: https://virtualenv.pypa.io/en/latest/userguide.html#the-system-site-packages-option