I installed matplotlib with package manager in Linux Mint 17.1. When I type import matplotlib in python3 terminal, everything works fine. However, when I create virtualenv, and then I run this command, Python cannot find this module. Can I somehow force my virtual environment to see it is already installed?
            Asked
            
        
        
            Active
            
        
            Viewed 439 times
        
    0
            
            
        - 
                    It sounds like you need to [add the matplotlib directory to the virtualenv's `sys.path`](http://stackoverflow.com/q/10738919/190597). – unutbu Mar 01 '15 at 18:47
 - 
                    Should I do this in main script via sys.path.extend or there is some better way? – klis87 Mar 01 '15 at 18:58
 - 
                    Sounds like you created a virtualenv with `--no-site-packages`, if it is the case you need to install matplotlib again, this time for your virtualenv instead of the system, you can do that using `pip install -U matplotlib` – Augusto Hack Mar 01 '15 at 19:14
 - 
                    I did not use this flag. That is exactly what I was thinking, virtualenv should still see automatically path to matplotlib installed via linux package manager. I don't want to use pip, especially I tried this and had many problems with launching the graph. – klis87 Mar 02 '15 at 11:34