enterbutton enterbutton - 1 year ago 352
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 ?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download