python编码问题
创建文件
# cat /usr/lib/python3.6/site-packages/sitecustomize.py
import sys
sys.setdefaultencoding('utf-8')
创建证书时letsencrypt] ./certbot-auto遇到该问题,由于certbot-auto使用了python venv,需找到该venv创建该文件
从文件/var/log/letsencrypt/letsencrypt.log中找到该错误的运行环境,并创建文件,如
cp /usr/lib/python2.7/site-packages/sitecustomize.py /opt/eff.org/certbot/venv/lib/python2.7/site-packages/sitecustomize.py