Im Terminal kann ich py -2
erfolgreich ausführen. Dennoch ,Ich habe Python 2.7 und 3.5 installiert, aber Python 3.5 funktioniert nicht gut
C:\Users\user>py -3
Fatal Python error: Py_Initialize: unable to load the file system codec
File "C:\Python27\lib\encodings\__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
Current thread 0x00004570 (most recent call first):
Ich rate mit 'python3' anstelle von 'py -3' funktioniert nicht auf Ihrem System? –
Es besteht die Möglichkeit, dass beim Zugriff auf Python über die Umgebungsvariablen ein Konflikt auftritt. Gehen Sie also zu dem Pfad, auf dem python3 installiert ist, und verwenden Sie dann den Befehl. –