LoginSignup
0
0

More than 3 years have passed since last update.

pip install時のUnicodeDecodeErrorの原因と解決法

Posted at

pip install時にUnicodeDecodeErrorが発生

実行コマンド
pip install pyopenjtalk
エラー内容
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 2186: ordinal not in range(128)
or 
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 1256: ordinal not in range(128)

原因と解決策

デフォルトの言語設定が日本語非対応であるが、ライブラリ内で日本語を読み込んでいることが原因。

apt-get install language-pack-ja
export LC_ALL="ja_JP.utf8"

で言語設定を変更すれば解決する。

0
0
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
0