pelican logo

错误消息:

from six.moves.html_parser import HTMLParser
...
ImportError: No module named html_parser

环境

  • Pelican版本: Pelican 3.6.3
  • OS X 环境:El Capitan 10.11.4,Pyton 2.7.x

解决方法

  1. $ pip uninstall pelican
  2. $ brew install python
  3. $ which python # should show /usr/local/bin/python
  4. $ python -V # should show Python 2.7.10
  5. $ pip install pelican

via python - Error using pelican-quickstart "No module named html_parser" - Stack Overflow