Error using pelican-quickstart “No module named html_parser”

前端 未结 5 882
半阙折子戏
半阙折子戏 2021-02-07 14:37

I decided to give pelican a try, but when I run pelican-quickstart, I get the following dialog:

$ pelican-quickstart
Traceback (most re         


        
5条回答
  •  感情败类
    2021-02-07 15:10

    I think that you've probably encountered with version conflict problem in module six.

    Try sudo pip install virtualenv to create an isolate python environment.

    start

    1. create your pelican path mkdir /path/to/pelican
    2. go to /path/to/pelican and create an isolate python environment with virtualenv venv
    3. activate virtualenv source venv/bin/activate
    4. install pelican under the venv(without sudo!) pip install pelican markdown

    done

    and now you are free to any problem mentioned above. all the dependencies in the venv are isolated from the global environment.

    To quit the venv, type deactivate

提交回复
热议问题