• windows下安装scoop


    scoop是windows下的包管理工具,类似与linux下的yum和python的pip。 scoop可以在windows下方便的进行软件的管理,尤其是对开发者提供了很大的遍历。

    cmd下执行如下红色命令:

    C:Usersacer>powershell    #进入到powershell
    Windows PowerShell
    版权所有 (C) Microsoft Corporation。保留所有权利。
    
    PS C:Usersacer> iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')
    Initializing...
    Downloading scoop...
    Extracting...
    Creating shim...
    Downloading main bucket...
    Extracting...
    Adding ~scoopshims to your path.
    'lastupdate' has been set to '2019-09-13T15:17:01.1502322+08:00'
    Scoop was installed successfully!
    Type 'scoop help' for instructions.

    特别说明:

    1.以上安装方式scoop的默认路径为:C:Usersacerscoop

    2.网上大多数教程安装命令是:iex (new-object net.webclient).downloadstring('https://get.scoop.sh'),但是我使用该命令安装时,安装失败,报错类似

    用“1”个参数调用“DownloadString”时发生异常:“操作超时”
    所在位置 行:1 字符: 1
    + iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : WebException

    网上寻找解决办法,发现 浏览器访问  https://get.scoop.sh 是链接到 https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1,后来把安装命令改为

    iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')  就安装成功了

  • 相关阅读:
    python3 基本使用多线程
    img前置显示屏装load图片
    leetcode
    亲串 (hdu 2203 KMP)
    基于VC面部识别软件(识别出人脸特征)
    IT该忍者神龟Oracle 树操作(select…start with…connect by…prior)
    It's about trust
    hdu 2128 Frog(简单DP)
    第四十天 阿乐在其中—Android小游戏的飞机(四)加入敌人
    Mac OS X通过结合80port
  • 原文地址:https://www.cnblogs.com/wang-mengmeng/p/11516947.html
Copyright © 2020-2023  润新知