Skip to content

Instantly share code, notes, and snippets.

@jiewpeng
Last active February 14, 2024 10:15
Show Gist options
  • Star 74 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save jiewpeng/8ba446acf329b1801bf91db767d179ea to your computer and use it in GitHub Desktop.
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)
@xiaokanha
Copy link

Thanks a lot, Sir.

@Jaiiideep
Copy link

Thanks a ton

@isaquillo
Copy link

I am really really thankful!!

@savenergy
Copy link

Very helpful to me as well. I had to add a directory change to get the prompt started in the folder where the context menu was selected. Like this:
cmd.exe /K "cd %1" && C:\anaconda3\Scripts\activate.bat

@RohitChaudharyCoupa
Copy link

Thanks allot!

@Maharramoff
Copy link

Adding icon
ctx-menu
regedit

@msdorachua
Copy link

Thanks alot! :)

This command worked for me
cmd.exe /K "cd %V" && C:\anaconda3\Scripts\activate.bat

@78-t0b1
Copy link

78-t0b1 commented May 10, 2020

Perfect

@madhavij
Copy link

This works perfectly well! Thank you for sharing this! 👍

@gudeh
Copy link

gudeh commented Dec 13, 2020

this is perfect!

@jitvimol
Copy link

jitvimol commented Feb 6, 2021

Thanks man this is great!! Thanks for sharing this.

@AshuMaths1729
Copy link

Thanks a lot for this hack! 😍

@jominjose14
Copy link

Works like a charm! Thank you for sharing this mate ;)

@niknam1
Copy link

niknam1 commented Apr 5, 2021

I did this and the anaconda prompt came for a second and just crashed, help?

@shubh0s
Copy link

shubh0s commented May 16, 2021

Thanks a lot for this! Awesome!

@luisliborio
Copy link

Wow.... Thanks a lot, man. Great job.

@pavanannamraju
Copy link

Thank you so much!!!!!!

@lwbaqueros
Copy link

Great. Special thanks to @Maharramoff and @p2jones

@OsamaAyman
Copy link

Thank you a lot <3

@thunderInfy
Copy link

Thanks a lot for this!

@e-leib
Copy link

e-leib commented Jan 22, 2022

This was super helpful, thank you!

@Abdulrahman-Nedal
Copy link

Thanks a lot, this was helpful ^_^

@olayne
Copy link

olayne commented Jul 8, 2022

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

@yamule
Copy link

yamule commented Aug 13, 2022

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
Copy link

Roy027 commented Aug 18, 2022

This is really cool and thank you very much!

@rusterholzsandro
Copy link

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

@sordidloam
Copy link

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

@mym92
Copy link

mym92 commented Jul 23, 2023

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

image

Any ideas, thanks in advance

@Wopnis
Copy link

Wopnis commented Feb 14, 2024

Thanks a lot!

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