我使用 Chocolatey 安装了 Python:
choco install python3
我在管理 PowerShell 提示符下执行了此操作。结果似乎足够成功:
PS C:\Windows\system32> choco install python3 --force
Installing the following packages:
python3
By installing you accept licenses for the packages.
python3 v3.6.0 (forced)
The package python3 wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider setting
'allowGlobalConfirmation'. Run 'choco feature -h' for more details.
Do you want to run the script?
1) yes
2) no
3) print
yes
Downloading python3 64 bit
from 'https://www.python.org/ftp/python/3.6.0/python-3.6.0-amd64.exe'
Hashes match.
Installing python3...
python3 has been installed.
Installed to 'C:\Python36'
The install of python3 was successful.
Chocolatey installed 1/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
不过我好像没有Python:
PS C:\Windows\system32> python
The term 'python' is not recognized as the name of a cmdlet,
那么...也许它已经安装了,但不在我的 PATH 中?有什么方法可以让我了解它安装在哪里吗?
答案1
答案2
它安装在这里,您可以从安装日志中看到:
'C:\Python36'