For products with sys.getdefaultencoding ()! ='ascii'
, sitecustomize.py is required.
sitecustomize.py.cirlceci
# -*- coding: utf-8 -*-
import sys
sys.setdefaultencoding('utf-8')
circle.yml
dependencies:
pre:
- cp circleci/sitecustomize.py venv/lib/python2.7/sitecustomize.py
Like this.
I copied it to venv / lib / python2.7 / site-packages
all the time and it didn't work and I was crying. In this case, CircleCI is Debian-based, so there is a file in /usr/lib/python2.7/sitecustomize.py and that is prioritized.
Recommended Posts