Package installed by Conda, Python cannot find it
<p>I try to install Theano by Anaconda. It works, but when I enter the python -i,  <code>import theano</code> shows <code>No module named 'theano'</code>. Do I need to switch another interpreter of Python, how? Also, for the packages installed by conda, if I don't double install them, can I find in Python? How is Python related to Python by Anaconda? Thanks!!!</p>

<p>You can refer to a specific version of python by using the following at the first line of your .py file
This is for python 2.7</p>

<pre><code>#!/usr/bin/env python3
</code></pre>

<p>This is for python 3</p>

<pre><code>#!/usr/bin/env python
</code></pre>

<p>As other users already pointed out you need to check if your module is included in your sys path. Use code:</p>

<pre><code>import sys
print(sys.path)
</code></pre>

<p>If not you can include this in your sys.path by using the command:</p>

<pre><code>sys.path.append('/path/to/the/folder/of/your/module/file')
</code></pre>

<p>or place it in default PYTHONPATH itself.</p>

<p>Other great answers:
<a href="http://stackoverflow.com/a/19305076/5381704">http://stackoverflow.com/a/19305076/5381704</a></p>

python anaconda theano conda