十年網(wǎng)站開(kāi)發(fā)經(jīng)驗(yàn) + 多家企業(yè)客戶 + 靠譜的建站團(tuán)隊(duì)
量身定制 + 運(yùn)營(yíng)維護(hù)+專業(yè)推廣+無(wú)憂售后,網(wǎng)站問(wèn)題一站解決

Win11下Scoop與Annie安裝
scoop使用指南
一、安裝前環(huán)境確認(rèn) 1.PowerShell版本要求scoop官網(wǎng)中提到PowerShell要大≥5.1版本
查看powershell 版本的命令“Get-Host | Select-Object Version”
PS C:\Users\chenky190417>Get-Host | Select-Object Version
Version
-------
5.1.22621.1692.NET框架版本需要.NET 框架 4.5(或更高版本),我這里安裝了6.0版本。
二、安裝ScoopScoop是Windows的命令行安裝程序,是一個(gè)強(qiáng)大的包管理工具??梢栽趃ithub上找到其項(xiàng)目的相關(guān)信息,項(xiàng)目網(wǎng)址。
github網(wǎng)址
碼云網(wǎng)址
1. 安裝scoop通過(guò)scoop官網(wǎng)下面的界面給出了安裝方法
詳見(jiàn)scoop安裝readme
(1) 制定執(zhí)行策略,保證允許本地腳本的執(zhí)行
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser執(zhí)行策略選擇Y
(2) 安裝scoop
irm get.scoop.sh | iex或下面的命令也不行:
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')都出錯(cuò),提示如下:
Initializing...
Running the installer as administrator is disabled by default, see https://github.com/ScoopInstaller/Install#for-admin for details.
Abort.表示作為管理員運(yùn)行installer默認(rèn)是被禁止的,詳見(jiàn)細(xì)節(jié),這里給出了解決方案,采用新admin對(duì)應(yīng)的命令
1.1 用默認(rèn)安裝路徑的方式安裝我采用命令“iex “& {$(irm get.scoop.sh)} -RunAsAdmin””
PS C:\Users\chenky190417>iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
Initializing...
Downloading...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.安裝過(guò)程殺毒軟件是否允許操作,允許就可以了。
安裝后默認(rèn)的路徑是C:\Users
如果要按照到指定目錄,詳見(jiàn)scoop安裝readme
.\install.ps1 -RunAsAdmin -ScoopDir 'D:\Program Files\scoop' -ScoopGlobalDir 'D:\Program Files\ScoopApps'可根據(jù)自己的需求來(lái)指定這兩個(gè)按照位置
安裝的日志信息如下:
PS C:\Users\chenky190417>.\install.ps1 -RunAsAdmin -ScoopDir 'D:\Program Files\scoop' -ScoopGlobalDir 'D:\Program Files\ScoopApps'
Initializing...
Downloading...
Extracting...
Creating shim...
Adding D:\Program Files\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.2. 驗(yàn)證是否安裝成功通過(guò)命令“scoop help”,安裝成功可以看到help信息,如下:
PS C:\Users\chenky190417>scoop help
Usage: scoop[]
Available commands are listed below.
Type 'scoop help' to get more help for a specific command.
Command Summary
------- -------
alias Manage scoop aliases
bucket Manage Scoop buckets
cache Show or clear the download cache
cat Show content of specified manifest.
checkup Check for potential problems
cleanup Cleanup apps by removing old versions
config Get or set configuration values
create Create a custom app manifest
depends List dependencies for an app, in the order they'll be installed
download Download apps in the cache folder and verify hashes
export Exports installed apps, buckets (and optionally configs) in JSON format
help Show help for a command
hold Hold an app to disable updates
home Opens the app homepage
import Imports apps, buckets and configs from a Scoopfile in JSON format
info Display information about an app
install Install apps
list List installed apps
prefix Returns the path to the specified app
reset Reset an app to resolve conflicts
search Search available apps
shim Manipulate Scoop shims
status Show status and check for new app versions
unhold Unhold an app to enable updates
uninstall Uninstall an app
update Update apps, or Scoop itself
virustotal Look for app's hash or url on virustotal.com
which Locate a shim/executable (similar to 'which' on Linux) 3. 卸載scoop卸載scoop的官方鏈接
用命令“scoop uninstall scoop”卸載,這個(gè)卸載命令,會(huì)刪除你配置的scoop下面的所有軟件,但卸載的時(shí)候提示提示沒(méi)有對(duì)一些路徑訪問(wèn)被拒絕,如下:
PS C:\Users\chenky190417>scoop uninstall scoop
WARN This will uninstall Scoop and all the programs that have been installed with Scoop!
Are you sure? (yN): y
Uninstalling '7zip'
Removing shim '7z.shim'.
Removing shim '7z.exe'.
Removing shim '7zFM.shim'.
Removing shim '7zFM.exe'.
Removing shim '7zG.shim'.
Removing shim '7zG.exe'.
WARN Couldn't remove ~\scoop\apps\7zip: 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\7zip\22.01\Codecs: 對(duì)路徑“Codecs”的訪問(wèn)被拒絕。.Exception
Uninstalling 'ffmpeg'
Removing shim 'ffmpeg.shim'.
Removing shim 'ffmpeg.exe'.
Removing shim 'ffplay.shim'.
Removing shim 'ffplay.exe'.
Removing shim 'ffprobe.shim'.
Removing shim 'ffprobe.exe'.
WARN Couldn't remove ~\scoop\apps\ffmpeg: 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\ffmpeg\5.1.2\fonts: 對(duì)路徑“fonts”的訪問(wèn)被拒絕。.Exception
Uninstalling 'lux'
Removing shim 'lux.shim'.
Removing shim 'lux.exe'.
WARN Couldn't remove ~\scoop\apps\lux: 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\lux\current: 對(duì)路徑“current”的訪問(wèn)被拒絕。.Exception
Couldn't remove ~\scoop\apps: 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\7zip\22.01\Codecs: 對(duì)路徑“Codecs”的訪問(wèn)被拒 絕。用“del .\scoop -Force”強(qiáng)制刪除scoop,發(fā)現(xiàn)刪掉了scoop下buckets、cache、persist和shims文件夾,但apps下無(wú)法徹底刪除,提示信息如下
PS C:\Users\chenky190417>del scoop
確認(rèn)
C:\Users\chenky190417\scoop 處的項(xiàng)具有子項(xiàng),并且未指定 Recurse 參數(shù)。如果繼續(xù),所有子項(xiàng)均將隨該項(xiàng)刪除。是否確實(shí)要繼續(xù)?
[Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暫停(S) [?] 幫助 (默認(rèn)值為“Y”): y
del : 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\7zip\22.01\Codecs: 對(duì)路徑“Codecs”的訪問(wèn)被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (Codecs:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\7zip\22.01\Formats: 對(duì)路徑“Formats”的訪問(wèn)被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (Formats:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除目錄 C:\Users\chenky190417\scoop\apps\7zip\22.01,因?yàn)樵撃夸洸粸榭铡?所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (22.01:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\7zip\current: 對(duì)路徑“current”的訪問(wèn)被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (current:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除目錄 C:\Users\chenky190417\scoop\apps\7zip,因?yàn)樵撃夸洸粸榭铡?所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (7zip:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\ffmpeg\5.1.2\fonts: 對(duì)路徑“fonts”的訪問(wèn)被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (fonts:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除目錄 C:\Users\chenky190417\scoop\apps\ffmpeg\5.1.2,因?yàn)樵撃夸洸粸榭铡?所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (5.1.2:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\ffmpeg\current: 對(duì)路徑“current”的訪問(wèn)被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (current:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除目錄 C:\Users\chenky190417\scoop\apps\ffmpeg,因?yàn)樵撃夸洸粸榭铡?所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (ffmpeg:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除項(xiàng) C:\Users\chenky190417\scoop\apps\lux\current: 對(duì)路徑“current”的訪問(wèn)被拒絕。
所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (current:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DeleteSymbolicLinkFailed,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除目錄 C:\Users\chenky190417\scoop\apps\lux,因?yàn)樵撃夸洸粸榭铡?所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (lux:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除目錄 C:\Users\chenky190417\scoop\apps,因?yàn)樵撃夸洸粸榭铡?所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (apps:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand
del : 無(wú)法刪除目錄 C:\Users\chenky190417\scoop,因?yàn)樵撃夸洸粸榭铡?所在位置 行:1 字符: 1
+ del scoop
+ ~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\chenky190417\scoop:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand嘗試重啟系統(tǒng)后用命令“del .\scoop -Force”強(qiáng)制刪除,還是上面的提示,直接鼠標(biāo)右鍵刪除卻可以刪除掉
三、安裝 lux(annie) 1.安裝lux項(xiàng)目網(wǎng)址:https://github.com/iawia002/lux
開(kāi)始安裝lux,這過(guò)程也安裝了ffmpeg等軟件。
PS C:\Users\chenky190417>scoop install lux
Installing '7zip' (22.01) [64bit] from main bucket
7z2201-x64.msi (1.8 MB) [=====================================================================================] 100%
Checking hash of 7z2201-x64.msi ... ok.
Extracting 7z2201-x64.msi ... done.
Linking D:\Program Files\scoop\apps\7zip\current =>D:\Program Files\scoop\apps\7zip\22.01
Creating shim for '7z'.
Creating shim for '7zFM'.
Creating shim for '7zG'.
Creating shortcut for 7-Zip (7zFM.exe)
Persisting Codecs
Persisting Formats
Running post_install script...
'7zip' (22.01) was installed successfully!
Notes
-----
Add 7-Zip as a context menu option by running: "D:\Program Files\scoop\apps\7zip\current\install-context.reg"
Installing 'ffmpeg' (5.1.2) [64bit] from main bucket
ffmpeg-5.1.2-full_build.7z (45.2 MB) [========================================================================] 100%
Checking hash of ffmpeg-5.1.2-full_build.7z ... ok.
Extracting ffmpeg-5.1.2-full_build.7z ... done.
Linking D:\Program Files\scoop\apps\ffmpeg\current =>D:\Program Files\scoop\apps\ffmpeg\5.1.2
Creating shim for 'ffmpeg'.
Creating shim for 'ffplay'.
Creating shim for 'ffprobe'.
Persisting fonts
'ffmpeg' (5.1.2) was installed successfully!
Installing 'lux' (0.16.0) [64bit] from main bucket
lux_0.16.0_Windows_64-bit.zip (10.8 MB) [=====================================================================] 100%
Checking hash of lux_0.16.0_Windows_64-bit.zip ... ok.
Extracting lux_0.16.0_Windows_64-bit.zip ... done.
Linking D:\Program Files\scoop\apps\lux\current =>D:\Program Files\scoop\apps\lux\0.16.0
Creating shim for 'lux'.
'lux' (0.16.0) was installed successfully!2. 使用lux下載視頻下載示例命令:
lux "https://www.bilibili.com/video/BV1tf4y1t7ru/?p=4&spm_id_from=pageDriver&vd_source=3f19bdc2a5854868deb3a176235129a2"下載后視頻文件在C:\Users-o參數(shù),后面帶上文件夾路徑即可,下載視頻的日志信息如下:
PS C:\Users\chenky190417>lux -o D:\download "https://www.bilibili.com/video/BV1tf4y1t7ru/?p=4&spm_id_from=pageDriver&vd_source=3f19bdc2a5854868deb3a176235129a2"
Site: 嗶哩嗶哩 bilibili.com
Title: 目標(biāo)檢測(cè) YOLOv5 開(kāi)源代碼項(xiàng)目調(diào)試與講解實(shí)戰(zhàn)【土堆 x 布爾藝數(shù)】 P4 如何利用 YOLOv5 進(jìn)行預(yù)測(cè)(一)
Type: video
Stream:
[16-12] -------------------
Quality: 流暢 360P hev1.1.6.L120.90
Size: 85.98 MiB (90156863 Bytes)
# download with: lux -f 16-12 ...
85.98 MiB / 85.98 MiB [======================================================================] 6.56 MiB p/s 100.00% 13s
Merging video parts into D:\download\目標(biāo)檢測(cè) YOLOv5 開(kāi)源代碼項(xiàng)目調(diào)試與講解實(shí)戰(zhàn)【土堆 x 布爾藝數(shù)】 P4 如何利用 YOLOv5 進(jìn)行預(yù)測(cè)(一).mp4
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購(gòu),新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧