用scoop安装一个pipx,显示以下错误
Scoop uses Git to update itself. Run 'scoop install git' and try again.
Couldn't find manifest for 'pipx'.
然后我继续:scoop install git 还是错误
Scoop uses Git to update itself. Run 'scoop install git' and try again.
Couldn't find manifest for 'git'.
重新安装:
xx>Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Initializing...
Scoop is already installed. Run 'scoop update' to get the latest version.
Abort.
继续:
> scoop update
Scoop uses Git to update itself. Run 'scoop install git' and try again.
还是错误,
各种查找百度,google解决方案,对我无用
于是卸载当前scoop:
> scoop uninstall scoop
WARN This will uninstall Scoop and all the programs that have been installed with Scoop!
Are you sure? (yN): y
Removing ~\scoop\shims from your path.
Scoop has been uninstalled.
卸载成功! 重新安装:
> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Initializing...
Downloading...
iex : 使用“2”个参数调用“DownloadFile”时发生异常:“基础连接已经关闭: 发送时发生错误。”
所在位置 行:1 字符: 1
+ iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-Expression], MethodInvocationException
+ FullyQualifiedErrorId : WebException,Microsoft.PowerShell.Commands.InvokeExpressionCommand
网络不行,换一种安装:
注意:网络失败的话,多回车执行几次,总有成功时候
>irm get.scoop.sh | iex
Initializing...
Downloading...
Extracting...
Creating shim...
Adding ~\scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
再重新安装:
z> scoop install pipx
Installing 'pipx' (1.5.0) [64bit] from main bucket
pipx.pyz (311.8 KB) [=========================================================================================] 100%
Checking hash of pipx.pyz ... ok.
Running pre_install script...
Linking ~\scoop\apps\pipx\current => ~\scoop\apps\pipx\1.5.0
Creating shim for 'pipx'.
'pipx' (1.5.0) was installed successfully!
'pipx' suggests installing 'python'.
安啥都行,完美收官!