Chocolatey:为什么它没有在我的笔记本电脑上找到我预装的 Python?
Chocolatey: Why did it not find my pre-installed Python on my laptop?
我的计算机中有整个 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%
非常感谢。
您需要 Chocolatey Pro 软件包来检测之前通过其他方式安装的软件。
对于免费版本,如果您知道该软件已经安装并且您希望以后的更新由 Chocolatey 管理,请使用 -n
/ --skip-powershell
参数到 choco install
告诉 Chocolatey not 到 运行 包的嵌入式 chocolateyInstall.ps1
脚本。这实际上将下载软件包并跳过实际安装,同时允许按照升级时的预期安装未来版本。
注意 --skip-powershell
:
- 不阻止 auto-uninstall 在
choco uninstall
期间发生(为此使用 --skip-autouninstall
和 --skip-powershell
)
- 您应该在一个单独的命令中安装您想要跳过安装脚本的包,而不是您想要正常安装的其他包,因为指定的参数会传递给每个指定的包安装。
- 这不是常见的情况,但某些包可能 post-import 升级有问题,特别是当包不代理 EXE、MSI 或 MSU 安装程序的安装时。一些软件包脚本也可能会在与您之前安装的版本不同的地方进行一些设置或安装。在这些情况下,您可能需要先卸载软件,然后再使用 Chocolatey 进行安装,而不是跳过安装脚本。
- 这可能表示 poorly-created 包,但在某些情况下包维护者别无选择。我创建了一些必须手动管理垫片的包,这需要安装脚本 运行.
我的计算机中有整个 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%
非常感谢。
您需要 Chocolatey Pro 软件包来检测之前通过其他方式安装的软件。
对于免费版本,如果您知道该软件已经安装并且您希望以后的更新由 Chocolatey 管理,请使用 -n
/ --skip-powershell
参数到 choco install
告诉 Chocolatey not 到 运行 包的嵌入式 chocolateyInstall.ps1
脚本。这实际上将下载软件包并跳过实际安装,同时允许按照升级时的预期安装未来版本。
注意 --skip-powershell
:
- 不阻止 auto-uninstall 在
choco uninstall
期间发生(为此使用--skip-autouninstall
和--skip-powershell
) - 您应该在一个单独的命令中安装您想要跳过安装脚本的包,而不是您想要正常安装的其他包,因为指定的参数会传递给每个指定的包安装。
- 这不是常见的情况,但某些包可能 post-import 升级有问题,特别是当包不代理 EXE、MSI 或 MSU 安装程序的安装时。一些软件包脚本也可能会在与您之前安装的版本不同的地方进行一些设置或安装。在这些情况下,您可能需要先卸载软件,然后再使用 Chocolatey 进行安装,而不是跳过安装脚本。
- 这可能表示 poorly-created 包,但在某些情况下包维护者别无选择。我创建了一些必须手动管理垫片的包,这需要安装脚本 运行.