您可以对已安装的包运行此命令
choco list --local-only --exact python --trace
其输出如下
Chocolatey v0.10.15
Operating System Version Number: 10.0.18363.0
Initializing global mutex
Waiting on the mutext handle for 2000 milliseconds
Entered mutex to deserialize 'C:\ProgramData\chocolatey\.chocolatey\python.2.7.11\.registry'
Initializing global mutex
Waiting on the mutext handle for 2000 milliseconds
Entered mutex to deserialize 'C:\ProgramData\chocolatey\.chocolatey\python.2.7.11\.files'
python 2.7.11
1 packages installed.
打开
C:\ProgramData\chocolatey\.chocolatey\python.2.7.11\.files
你会看到的
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\python\python.nupkg" checksum="8217F64EF970491C464DAA20F6BF45F1" />
<file path="C:\ProgramData\chocolatey\lib\python\python.nuspec" checksum="4F62CF5DD7934CF4C8ED62FE24848C72" />
<file path="C:\ProgramData\chocolatey\lib\python\tools\chocolateyInstall.ps1" checksum="6EBF6A5BBC8667B7DEE75CA2E0CF2EB4" />
</files>
</fileSnapshot>
指向
C:\ProgramData\chocolatey\lib\python
作为安装文件夹。