Importing system-wide installed module into Anaconda
Question: I have an issue with module importing within Anaconda. I'm using the latest
Anaconda 3 installed in my Linux home directory in order to have the latest
jupyter, scipy, numpy and so on. I also have installed a scientific package
(Kwant) for quantum transport calculations via Ubuntu ppa deb package: the
libraries are found in `/usr/lib/python3/dist-packages/kwant`

I have set python as python3.4 with alias command and exported environment
variables `PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages/kwant` and
the same for `LD_LIBRARYPATH`. When I launch jupyter notebook and execute the
first cell with `import kwant` I get the error message

    
    
    ImportError: No module named 'kwant'
    

Is it possible importing a module which is installed in `/usr` system
directory whereas Anaconda is in the `/home directory` ?

Thanks in advance


Answer: change

    
    
    PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages/kwant
    

to

    
    
    PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages
    

And see if that works for you

