今天安装certbot证书的报错
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe7 in position 14: ordinal not in range(128)
直接上解决办法
首先找到python
的安装目录
whereis python
然后修改lib
目录下的mimetypes.py
文件
import如下内容:
if sys.getdefaultencoding() != 'utf-8':
reload(sys)
sys.setdefaultencoding('utf-8')
如下:
之后在运行就ok了!