Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)
I just downloaded and installed Anaconda on my Windows os. However, I am having difficulty in executing .py files using the command prompt. How can I get my system to know that the python.exe application is in the Anaconda folder so it can execute my .py files?

1 Answer

0 votes
by (108k points)

You have to use the Anaconda Prompt rather than the common Windows command prompt. Then go to your folder with the .py file and run:

 python myfile.py

But, if you need to use a normal command prompt you should put the path with you're python.exe which is in

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

behind this one put your .py file.

Related questions

0 votes
1 answer
asked Feb 10, 2021 in Python by ashely (50.2k points)
0 votes
1 answer
0 votes
1 answer
asked Sep 16, 2019 in Python by Sammy (47.6k points)

Browse Categories

...