What to do if you get a UnicodeDecodeError with pip install

Introduction

I recently started using python. At that time, I got an error when I ran pip install, so I will write a workaround.

environment

approach

Add the following files to C: \ Python27 \ Lib \ site-packages.

sitecustomize.py


import sys
sys.setdefaultencoding('shift-jis')

Change the directory according to your environment. This should work fine.

Recommended Posts

What to do if you get a UnicodeDecodeError with pip install
What to do if you can't install pyaudio with pip #Python
What to do if a UnicodeDecodeError occurs in pip
What to do if you get a TypeError with numpy min, max
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip
What to do if you get a minus zero in Python
Note: What to do if pip install fails
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get lost in file reference with FileNotFoundError
What to do if pip install fails in Xcode 5.1
What to do if pip install fails to install dependent libraries
What to do if you get a "No versions found" error in pipenv
What to do if you get angry with swapon failed: Operation not permitted
What to do if you get an error when installing python with pyenv
[AWS] What to do when you want to pip with Lambda
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if pip gives a DistributionError in Homebrew
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if `pip install matplotlib` fails on Mac
What to do if pip install mysqlclient fails on MacOS
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an Import Error when importing matplotlib with Jupyter
Read this if you get SSL related errors with pip install! !! !!
[TensorFlow] If you want to run TensorBoard, install it with pip
What to do if you can't build your project with Maven
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
What to do if pip cannot be installed
What to do if you can't find well with grep's -f option
What to do if you couldn't send an email to Yahoo with Python.
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if you get stuck during Anaconda installation on Linux
What to do if pyenv install does not proceed with an error
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if pip --user returns an error in a virtual environment created with pyenv
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
If you get hooked on pip install dlib on OSX
Links to do what you want with Sublime Text
What to do if scrapy doesn't work after installing scrapy with pip on mac
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if you get a Permission denied (public key) error when trying to pull on Github
What to do if you get "Python not configured." Using PyDev in Eclipse
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do when you get angry that libxml / xmlversion.h does not exist when you put lxml with pip
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get an "unknown service" error from your gRPC server
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an error when importing matplotlib in Python (Mac)
How to install and use pyenv, what to do if you can't switch python versions
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
What to do if you are addicted to Windows character code