Skip to content

Instantly share code, notes, and snippets.

@jiewpeng
Last active April 13, 2026 14:09
Show Gist options
  • Select an option

  • Save jiewpeng/8ba446acf329b1801bf91db767d179ea to your computer and use it in GitHub Desktop.

Select an option

Save jiewpeng/8ba446acf329b1801bf91db767d179ea to your computer and use it in GitHub Desktop.
Add Anaconda Prompt to Windows right click context menu

This gist describes how to add Anaconda Prompt to the Windows right click context menu. This is because at some point, Anaconda no longer adds itself to the PATH after installation.

  1. Run regedit.exe
  2. Navigate to HKEY_CLASSES_ROOT > Directory > Background > shell
  3. Add a key named AnacondaPrompt and set its value to "Anaconda Prompt Here" (or anything you'd like it to appear as in the right click context menu)
  4. Add a key under this key, called command, and set its value to cmd.exe /K C:\Anaconda3\Scripts\activate.bat (may have to change the activate.bat file to whereever Anaconda is installed)
@e-leib

e-leib commented Jan 22, 2022

Copy link
Copy Markdown

This was super helpful, thank you!

@Abdulrahman-Nedal

Copy link
Copy Markdown

Thanks a lot, this was helpful ^_^

@olayne

olayne commented Jul 8, 2022

Copy link
Copy Markdown

For me this is just opening a command prompt at the anaconda location... nanyone has had the same issue?

@yamule

yamule commented Aug 13, 2022

Copy link
Copy Markdown

Thanks a lot! This hack is working with my windows 11, too! (However, one more extra click is needed (feature of windows 11) compared with windows 10.)

@Roy027

Roy027 commented Aug 18, 2022

Copy link
Copy Markdown

This is really cool and thank you very much!

@rusterholzsandro

Copy link
Copy Markdown

does anyone know how to specify which environment you want to open?

@sordidloam

Copy link
Copy Markdown

well, didn't work for me. Tried the above variables for "cd %V" etc. Do I need to reboot?

@mym92

mym92 commented Jul 23, 2023

Copy link
Copy Markdown

For me this is just opening a command prompt at the anaconda location... nanyone has had the same issue?

did you solve it?

@jforbes94

Copy link
Copy Markdown

image

Any ideas, thanks in advance

@Wopnis

Wopnis commented Feb 14, 2024

Copy link
Copy Markdown

Thanks a lot!

@ialhabbal

Copy link
Copy Markdown

Thanks! Worked...

@DuckersMcQuack

Copy link
Copy Markdown

Neither of the ways people added the command worked for me. Most opens cmd, but nothing else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment