enterbutton enterbutton - 6 days ago 5x
YAML Question

ImportError: No module named yaml

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.

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

import yaml
ImportError: No module named yaml

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


Run this from both eclipse and the commandline:

import sys; print(sys.executable)

Do you get the same result for both?

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