Error using pelican-quickstart “No module named html_parser”

前端 未结 5 1656
后悔当初
后悔当初 2021-02-07 14:49

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:08

    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

提交回复
热议问题