Do you use Python 3.6 as i posted link to?
Here a example:
To make sure that that editor you use don't mess up with byte order mark (BOM).
# coding=utf-8
is not needed in Python 3 as it's use utf-8 as default encoding.Here a example:
hello.py
saved in folder C:\foo\hello.py
print("Hello World")Start
cmd
:Microsoft Windows [Version 10.0.16299.248] (c) 2017 Microsoft Corporation. Med enerett. C:\WINDOWS\system32>cd\ # Test python version C:\>python -V Python 3.6.4 # Test pip C:\>pip -V pip 9.0.1 from c:\python36\lib\site-packages (python 3.6) # Run with path to file C:\>python C:/foo/hello.py Hello World # Navigate to foo folder and run C:\>cd foo C:\foo>python hello.py Hello World C:\foo>If this doesn't work try saving
hello.py
with and other editor.To make sure that that editor you use don't mess up with byte order mark (BOM).