Mac Flask 报错:RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encodin
发布时间:2018-09-24T19:11:15:手机请访问
1 2 3 |
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encodin |
怎么办呢?
可以在Pycharm 中这是编码
1 2 3 4 |
# 设置编码 export LC_ALL=en_US.utf-8 export LANG=en_US.utf-8 |

方法二
但是我还是推荐 大家在自己的环境变量中添加
1 2 3 4 5 |
# 设置编码 export LC_ALL=en_US.utf-8 export LANG=en_US.utf-8 |

shell 执行
1 2 |
➜ ~ source ~/.zshrc |
如果还是不行的话建议重启一下系统,不知道为啥,我的是重启系统才解决这个问题

