How to use Anaconda Python to execute a .py file?

You should use Anaconda Prompt instead of common Windows command prompt.
Then navigate to your folder with the .py file and run:

 python myfile.py

However if you want to use normal command prompt you should put the path with you’re python.exe which is usually in

C:\Users\<username>\AppData\Local\Continuum\anaconda3\python.exe

behind this one put your .py file.

Leave a Comment

error code: 521