12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PyCharmで Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: windows-31j が発生する場合の対処

Last updated at Posted at 2015-11-06

PyCharm/Python Commynity Edition Pluginで以下のエラーが発生する場合の対応方法

Fatal Python error: Py_Initialize: can't initialize sys standard streams
LookupError: unknown encoding: windows-31j

Process finished with exit code 3

PyCharm(IDEA)のインストールディレクトリにあるbin/pycharm.exe.vmoptions(idea.exe.vmoptions)に、以下を加える。

-Dfile.encoding=UTF-8

これで対応可能。

  • 2015/11/11にリリースされた143.595では対応済み(PyCharm 143.595 Release Notes)
  • Pluginで使っている人は、2015/11/12リリースの143.382ではまだ修正の当たった5.0.143.116~をインストールすることができない(plugin is incompatible with this installationが発生)。Early Access Programでマイナーバージョンを更新する手もあるが、別の問題が発生する可能性もあり微妙。

Bug Tracker

12
11
1

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
12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?