problem : I got the “ImportError: No module named yaml ” error when I attempted to install NLTK toolkit to my ubuntu system.
solution:
yaml library for python seems to not be installed on your system.
On ubuntu system just do a :
sudo apt-get install python-yaml
On windows
easy_install python-yaml
easy_install rosinstall
When installing under the window, it may not have its own installation easy_install, we need to install it manually
First download the easy_install installation package, download address:
http://pypi.python.org/pypi/setuptools
Find ez_setup.py on the page and download it and execute it
It is troublesome to download PyYAML-3.10.win32-py2.7.exe directly
Similar Posts:
- ImportError: No module named pkg_resources [How to Solve]
- Debian pip3 ImportError: cannot import name ‘IncompleteRead’ [How to Solve]
- python ImportError: No module named yaml
- How to install PIP in no module named setuptools
- [Solved] No module named extern.six.moves
- ImportError No module named setuptools [How to Solve]
- ImportError: No module named ‘requests’
- modulenotfounderror: no module named ‘cv2’ [How to Solve]
- fatal pylint error : ……can’t find ‘__main__’module in
- No module named ‘pkg_resources.extern’ [How to Solve]