Coder Social home page Coder Social logo

Comments (4)

chrisoro avatar chrisoro commented on May 30, 2024 1

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.

todofixthis avatar todofixthis commented on May 30, 2024

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.

todofixthis avatar todofixthis commented on May 30, 2024

lol there's even a PEP for it:
https://www.python.org/dev/peps/pep-0528/

from pyota-ccurl.

todofixthis avatar todofixthis commented on May 30, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.