When using python with pyenv on ʻOSX, the following error may appear. (This problem doesn't seem to occur with the python` that comes with the OSX standard.)
LookupError: unknown encoding: x-mac-japanese
This problem can be solved by rebuilding python with compile options as follows.
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs4" pyenv install 2.6.9
Recommended Posts