Search code examples
pythonanacondadefault

How to change cmd python from anaconda to default python?


windows power shell or cmd uses anaconda python instead of the default windows installation
how to make them use the default python installation?

my os is win 8.1
python 3.6
anaconda python 3.6


Solution

  • Set the environment path variable of your default python interpreter in system properties.

    or if this doesn't work do:

    in cmd C:\Python27\python.exe yourfilename.py

    in the command first part is your interpreter location and second is your file name