1

Python 2.7.4 と一緒に Python 3.5.0 をインストールしようとしています。

C:\Users\Animesh>python
Python 2.7.4 (default, Apr  6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

C:\Users\Animesh>py
Python 2.7.4 (default, Apr  6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

C:\Users\Animesh>py -2
Python 2.7.4 (default, Apr  6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

C:\Users\Animesh>py -3
Fatal Python error: Py_Initialize: unable to load the file system codec
  File "E:\Python27\Lib\encodings\__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x00003514 (most recent call first):

上記のように一連のコマンドを試しましたが、python 3.5 は機能していないようです。Python 3.5 インタープリターを使用して PyCharm でプロジェクトを作成しようとしましたが、同じエラーが発生します。

このエラーを修正するにはどうすればよいですか?

4

1 に答える 1