Search code examples
pythonspyderpython-3.7geanyanaconda3

I want to configure a text editor(geany) to execute files in my windows 10 machine I use puthon3.7


I tried the steps HERE to try get my path interpreter location which I need to configure my text editor(geany). After inserting the path location in the compile and execute fields in the text editor text editor I got a message saying

‘c:\user\name’ is not recognized as an internal or external command, operable program or batch file.


Solution

  • if you are installing python using anaconda/miniconda installer then following the guide here, you have to

    1. open Anaconda Prompt
    2. run where python in the command line
    3. copy the first line of the result text which looks like this c:\user\patrick\Anaconda3\python.exe note that it is your folder in your computer, which means patrick could be named differently based on your username, and mostly it is not c:\users\name
    4. put that path to your custom build command of your geany, if you want to execute your file it would be like this "c:/users/patrick/Anaconda3/python.exe" %f

    Please note the quote is mandatory if you have spaces in one of the folder names (which is totally okay and common in non-linux / non-mac folders).

    You can use either forward or backward slash for the path separator.