Comments (4)
Yup, I just did chcp in cmd and replaced the 'utf-8' in line 75 with the chcp shown in cmd.
Original issue for pip: pypa/pip#4251
from pyota-ccurl.
The trouble seems related to differences in the way pip.compat.console_to_str
works in different versions of Python:
if sys.version_info >= (3,):
def console_to_str(s):
try:
return s.decode(sys.__stdout__.encoding)
except UnicodeDecodeError:
return s.decode('utf_8')
else:
def console_to_str(s):
return s
Possible workaround:
https://drj11.wordpress.com/2007/05/14/python-how-is-sysstdoutencoding-chosen/
from pyota-ccurl.
lol there's even a PEP for it:
https://www.python.org/dev/peps/pep-0528/
from pyota-ccurl.
User was able to work around this issue by explicitly changing the encoding specified in console_to_str()
in pip/compat/__init__.py
(line 75). (note: pip v9.0.1)
Will look for a more... environmental workaround to recommend in the README
(:
from pyota-ccurl.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyota-ccurl.