ImportError: No module named yaml
<p>I am very new to PyDev and Python, though I have used Eclipse but I did't do much with it. So I am having some trouble with importing yaml in my Flask project. </p>

<p>I install yaml and I can import it from the terminal. But I can't import it when I try to run the project in the eclipse</p>

<pre><code>import yaml
ImportError: No module named yaml
</code></pre>

<p>What is the way of importing or setting yaml library to my eclipse flask project ? </p>

<p>Run this from both eclipse and the commandline: </p>

<pre><code>import sys; print(sys.executable)
</code></pre>

<p>Do you get the same result for both?</p>

<p>using this statements help me to understand I was using different interpreters which are located in my system. thank you @shuttle87</p>

python eclipse flask yaml pydev