0

I just started to us Python and Pycharm today. I installed Python 3.4.3 and pycharm 4.5, and I'm using Windows 7 OS on a acer TravelMate 8471 laptop.

When I try to print("hello"), the error is:

"Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: x-windows-950"

Does anyone know how to fix this issue ?

Med
  • 2,035
  • 20
  • 31
Ryan1339
  • 9
  • 1
  • 2

2 Answers2

3

Just put the hello.py file in a subdirectory of your project directory.

All the files in the project directory essentially provides relevant "system information" of the project. One project may contains couple of applications. Each application should be put in one subdirectory.

set: "Settings/Editor/File Encodings/Project Encoding" to: "UTF-8"

Community
  • 1
  • 1
J. H. Jeng
  • 31
  • 2
1

It's likely due to the PY-15481 bug. Try PyCharm 4.5.1 RC build.

Andrey Vlasovskikh
  • 16,489
  • 7
  • 44
  • 62