> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Finding your Anaconda Python interpreter path

export const Comments = ({children}) => {
  return <div class="my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3 border border-zinc-500/20 bg-zinc-50/50 dark:border-zinc-500/30 dark:bg-zinc-500/10" data-callout-type="comments">
      <div class="w-4">
        <svg width="14" height="14" viewBox="0 0 640 640" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" aria-label="Comments">
            <path d="M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM280 400C266.7 400 256 410.7 256 424C256 437.3 266.7 448 280 448L360 448C373.3 448 384 437.3 384 424C384 410.7 373.3 400 360 400L352 400L352 312C352 298.7 341.3 288 328 288L280 288C266.7 288 256 298.7 256 312C256 325.3 266.7 336 280 336L304 336L304 400L280 400zM320 256C337.7 256 352 241.7 352 224C352 206.3 337.7 192 320 192C302.3 192 288 206.3 288 224C288 241.7 302.3 256 320 256z" />
        </svg>
      </div>
      <div class="text-sm prose min-w-0 w-full">
        {children}
      </div>
    </div>;
};

IDEs often require you to specify the path to your Python interpreter. This path varies according to which operating system version and which Anaconda or Miniconda version you use, so you will need to search your file system to find the correct path to your Python interpreter.

You can search for the Python interpreter with your operating system's file manager, such as File Explorer on Windows, Finder on macOS, or Nautilus on Ubuntu Linux.

You can also use the command line to show the location of the Python interpreter in the active <Tooltip tip="An isolated folder containing specific conda packages and dependencies that won't interfere with other projects. Each environment maintains its own versions of libraries and packages, so changes in one environment don't affect others.">conda environment</Tooltip>:

<Tabs>
  <Tab title="Windows">
    1. From the Start Menu, open the Anaconda Prompt.

    2. Activate a conda environment that contains an installation of Python by running the following command:

       ```sh theme={null}
       conda activate <ENV_NAME>
       ```

           <Comments>
             Replace \<ENV\_NAME> with the name of the environment.
           </Comments>

    3. Locate the Python interpreter by running the following command:

       ```sh theme={null}
       where python
       ```

           <Accordion title="&#x22;python not found&#x22; error">
             If your terminal shows `python not found`, your environment might not have Python installed. To resolve this issue:

             1. Check if Python exists in your environment:

                ```sh theme={null}
                conda list python
                ```

             2. If you don't see Python listed, install it:

                ```sh theme={null}
                # (Optional) Specify the version. For example, python>=3.12
                conda install python
                ```

             3. Verify the installation by locating your Python interpreter:

                ```sh theme={null}
                where python
                ```
           </Accordion>

    Here is an example command return for user `jsmith` running Anaconda3 on Windows 10:

    ```sh theme={null}
    C:\Users\jsmith\Anaconda3\python.exe

    # Python image in a conda environment called myenv
    C:\Users\jsmith\Anaconda3\envs\myenv\python.exe
    ```
  </Tab>

  <Tab title="macOS and Linux">
    1. Open a terminal window.

    2. Activate a conda environment that contains an installation of Python by running the following command:

       ```sh theme={null}
       conda activate <ENV_NAME>
       ```

           <Comments>
             Replace \<ENV\_NAME> with the name of the environment.
           </Comments>

    3. Locate the Python interpreter by running the following command:

       ```sh theme={null}
       which python
       ```

           <Accordion title="&#x22;python not found&#x22; error">
             If your terminal shows `python not found`, your environment might not have Python installed. To resolve this issue:

             1. Check if Python exists in your environment:

                ```sh theme={null}
                conda list python
                ```

             2. If you don't see Python listed, install it:

                ```sh theme={null}
                # (Optional) Specify the version. For example, python>=3.12
                conda install python
                ```

             3. Verify the installation by locating your Python interpreter:

                ```sh theme={null}
                which python
                ```
           </Accordion>

    Here is an example command return for user `jsmith` running Anaconda on macOS:

    ```
    ~/anaconda/bin/python

    or

    /Users/jsmith/anaconda/bin/python
    ```

    Here is an example command return for user `jsmith` running Anaconda on Linux:

    ```
    ~/anaconda/bin/python

    or

    /home/jsmith/anaconda/bin/python
    ```
  </Tab>
</Tabs>

<Note>
  Depending on whether you've installed Anaconda or Miniconda, the folder in your home directory might be named one of the following:

  * `anaconda`
  * `anaconda2`
  * `anaconda3`
  * `miniconda`
  * `miniconda2`
  * `miniconda3`
</Note>
