Scoop 运行错误 Scoop uses Git to update itself. Run ‘scoop install git‘ and try again.错误解决和安装

用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'.

安啥都行,完美收官!

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值