Search code examples
chocolatey

What directory does chocolatey install commands to?


I've successfully done choco install python2 and choco install python3 but I can't see the result on cmd.exe (yes, I reopened non-administrator cmd.exe).

Where does chocolatey install commands to? I'll fix my PATH env-var when I can work out what should be there.

Choclatey's FAQ does not include an answer to this question. I'm more used to homebrew (Mac), and the answer for that is /usr/local/bin/


Solution

  • The answer is, it depends :-)

    Most package contents will be installed to the chocolatey directory, which you can find at C:\ProgramData\chocolatey\lib. For example, in the case of python3 you will find the exe in C:\ProgramData\chocolatey\lib\python3\tools.

    In addition, you will find a shim exe located at C:\ProgramData\chocolatey\bin for python. This location is already contained within your path, so you should already have access to it without making any other changes.