I’m using OS X with Sublime text build 2181, and I am having trouble using the Yaml module in a Sublime Text plugin.
I have installed PyYaml by doing python setup.py install. When I go to the python console, and try import yaml I have no problems. But when I try to save my Sublime Text plugin with the import yaml statement, I keep getting ImportError: No module name yaml
I’m using the pre-installed version of Python, version 2.7.
Last line of the install output:
Writing /Users/me/Developer/Cellar/python/2.7.2/lib/python2.7/site-packages/PyYAML-3.10-py2.7.egg-info
Any help would be greatly appreciated.
/Users/me/Developer/Cellar/python/2.7.2/lib/python2.7doesn’t seem like a pre-installed version of Python on a Mac. Can you try to identify the system-wide Python installation and use the explicit path to the python executable to executesetup.py install? Then try the Sublime Text plug-in.The default Mac OS X Python should be located at
/Library/Frameworks/Python.framework/Versions/...