复现问题:
$ python -c "import yaml"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named yaml
解决方法:
python2:
$ sudo apt-get install python-yaml
python3:
$ sudo pip install pyyaml
或者
$ sudo pip3 install pyyaml
或者
$ sudo apt-get install python3-yaml