Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment

后端 未结 3 740
遇见更好的自我
遇见更好的自我 2021-01-31 15:08

I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command

sudo python3 manage.py runserver --host 0.0.0.0 --port 80

3条回答
  •  悲&欢浪女
    2021-01-31 15:55

    At the top of your Python script, try to put

    export LC_ALL=en_US.utf-8
    export LANG=en_US.utf-8
    

提交回复
热议问题