解决pycharm 中 python3 的环境编码是 ASCII 转化为utf-8Click will abort further execution because Python 3

If you are trying to execute tests case you must set the following environment variables each time:

export LC_ALL=en_US.utf-8
export LANG=en_US.utf-8
Doing this each time will resolve the error.
It may also be possible to set this in your IDE if you are using one. For example see the following setting in PyCharm 2016.

自己的一个小项目中因为 使用 了 6.7 的 click 包,结果就发现 一直编码不对,其实也是有问题,之前没啥事情,很突然就不能运行了, 甚至感觉好像是换了ip 后发生的。
还有一个有趣的现象就是 不管怎么设置就是不见效,还有就是 在 Terminal 都已经是 utf-8了,但是在pycharm 还是 ASCII。好奇怪

最后不过还是解决了

解决pycharm 中 python3 的环境编码是 ASCII 转化为utf-8Click will abort further execution because Python 3

解决pycharm 中 python3 的环境编码是 ASCII 转化为utf-8Click will abort further execution because Python 3

 代码重启,问题解决