ImportError: No module named yaml

问题:

import yaml
ImportError: No module named yaml

解决:

wget http://pyyaml.org/download/pyyaml/PyYAML-3.12.tar.gz
tar -xvzf PyYAML-3.12.tar.gz
cd PyYAML-3.12
python setup.py install 

 

posted @ 2019-10-21 09:50  BlueOceans  阅读(2245)  评论(0编辑  收藏  举报