Chocolatey:为什么它在我的笔记本电脑上找不到我预装的 Python?
我的电脑里有整个 anaconda 套件和 python。但是,当我下载node.js和chocolatey时,出现以下错误代码并开始安装python。谁能告诉我为什么?
错误代码是:
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
WARNING: Not setting tab completion: Profile file does not exist at
'C:\Users\futur\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
Chocolatey v0.12.1
Upgrading the following packages:
python;visualstudio2019-workload-vctools
By upgrading, you accept licenses for the packages.
python is not installed. Installing...
Progress: Downloading python3 3.10.3... 100%
Progress: Downloading python3 3.10.3... 100%
Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
Progress: Downloading vcredist140 14.31.31103... 100%
非常感谢。
I have the entire anaconda suite and python in my computer. However, when I am downloading node.js and chocolatey, the following error code came out and started installing python. Can anyone tell me why?
The error code is:
Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
chocolatey.nupkg file not installed in lib.
Attempting to locate it from bootstrapper.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
WARNING: Not setting tab completion: Profile file does not exist at
'C:\Users\futur\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
first prior to using choco.
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
Chocolatey v0.12.1
Upgrading the following packages:
python;visualstudio2019-workload-vctools
By upgrading, you accept licenses for the packages.
python is not installed. Installing...
Progress: Downloading python3 3.10.3... 100%
Progress: Downloading python3 3.10.3... 100%
Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
Progress: Downloading vcredist140 14.31.31103... 100%
Thanks so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要包中的 Chocolatey Pro 来检测该软件之前是否通过其他方式安装。
对于免费版本,如果您知道该软件已安装并且希望将来的更新由 Chocolatey 管理,请使用
-n
/--skip-powershell
参数choco install
告诉 Chocolatey 不运行包的嵌入式chocolateyInstall.ps1
脚本。这实际上会下载软件包并跳过实际安装,同时允许按照您在升级时的预期安装未来版本。请注意
--skip-powershell
:choco uninstall
期间发生自动卸载(与--skip-autouninstall
一起使用>--skip-powershell 为此)You need Chocolatey Pro for the package to detect that the software was previously installed via other means.
With the free version, if you know the software is already installed and you want future updates to be managed by Chocolatey, use the
-n
/--skip-powershell
parameter tochoco install
to tell Chocolatey not to run the package's embeddedchocolateyInstall.ps1
script. This will essentially download the package and skip the actual installation, while allowing future versions to be installed as you would expect on upgrade.Note that
--skip-powershell
:choco uninstall
(use--skip-autouninstall
alongside--skip-powershell
for this)