I use Mac OS and use HomeBrew
as the package manager.
I installed python 2.7.10
. Along with this installation was to have occurred with pip
. However the following problem occurs:
==> /usr/local/Cellar/python/2.7.10/bin/python -s setup.py --no-user-cfg install --force
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
It seems the problem is with the encoding. I made an attempt to edit the file subprocess.py
by putting # -*- coding: utf-8 -*-
, but without success.
I also noticed that the problem is not with the manager brew
, because the same happened with easy_install
:
File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
I wanted to use /usr/local/lib/python2.7/site-package/
as a directory for python2.7 packages