LoginSignup
0
2

More than 5 years have passed since last update.

pip installでUnicodeDecodeErrorが出た時の対処法

Last updated at Posted at 2017-09-04

はじめに

最近pythonを使い始めました。
その際、 pip install を実行した際にエラーが出たので、対処法を書きます。

環境

  • Windows 8.1
  • Python 2.7.13

対処法

C:\Python27\Lib\site-packages に以下のファイルを追加します。

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

ディレクトリは環境に合わせて変更してください。
これでうまく動作するはずです。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2