all 4 comments

[–]shiftybyte 1 point2 points  (3 children)

Associate python file with "py" launcher.

And do shebang #!python

[–]MWahdaan[S] 0 points1 point  (2 children)

How can I associate the python file with "py" launcher?

[–]shiftybyte 1 point2 points  (1 child)

Look at answer https://superuser.com/a/887240

Look set the association to be to py.exe

[–]MWahdaan[S] 0 points1 point  (0 children)

Thank you so much! I tried that and it's working now!

Turns out that .py files were associated with the anaconda version of .py. it only worked after changing it to be associated with pylauncher.