今天,你突发奇想,尝试使用conda来安装modelscope。于是,你欢快地敲完了以下安装命令:

conda install modelscope

可是,你很快就得到了以下让人抓狂的错误信息,modelscope包找不到!!!!!

3 channel Terms of Service accepted
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - modelscope

Current channels:

  - defaults

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

于是,你使用以下命令在仓库中搜索了一下modelscope包,确认是不是真的没有?

conda search modelscope

遗憾的是,你仍然得到以下信息,仓库中根本就没有modelscope包!!!!!!!

3 channel Terms of Service accepted
Loading channels: done
No match found for: modelscope. Search: *modelscope*

PackagesNotFoundError: The following packages are not available from current channels:

  - modelscope

Current channels:

  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

此时,你已进入了抓耳挠腮的焦灼状态。可是,聪明的你灵光一现,立即打开anaconda官方网址进行包搜索:

https://anaconda.org/

果然,在官网上搜索到了此包:

点击“conda-forge / modelscope”后,你发现了正确的安装命令:

哈哈,你开始欣喜若狂了~~~

于是,你按要求输入以下命令

conda install conda-forge::modelscope

呜呜~~~,咋这么慢啊~~~~,但是,除了等待,你肯定也没有别的法子!!!

终于,经过慢长的等待,你等到了确认更新安装的提示信息:

3 channel Terms of Service accepted
Channels:
 - defaults
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\anaconda3

  added / updated specs:
    - conda-forge::modelscope


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-25.7.0               |  py313hfa70ccb_0         1.2 MB  conda-forge
    modelscope-1.28.1          |     pyhd8ed1ab_0         3.0 MB  conda-forge
    ------------------------------------------------------------
                                           Total:         4.1 MB

The following NEW packages will be INSTALLED:

  modelscope         conda-forge/noarch::modelscope-1.28.1-pyhd8ed1ab_0

The following packages will be UPDATED:

  conda              pkgs/main::conda-25.5.1-py313haa95532~ --> conda-forge::conda-25.7.0-py313hfa70ccb_0


Proceed ([y]/n)?

你毫无悬念的输入了“y”,安装继续进行。。。。。此时,经过少许等待,安装完成!

为了验证成果,你在命令行输入了以下命令:

modelscope

命令返回了以下信息:


 _   .-')                _ .-') _     ('-.             .-')                              _ (`-.    ('-.
( '.( OO )_             ( (  OO) )  _(  OO)           ( OO ).                           ( (OO  ) _(  OO)
 ,--.   ,--.).-'),-----. \     .'_ (,------.,--.     (_)---\_)   .-----.  .-'),-----.  _.`     \(,------.
 |   `.'   |( OO'  .-.  ',`'--..._) |  .---'|  |.-') /    _ |   '  .--./ ( OO'  .-.  '(__...--'' |  .---'
 |         |/   |  | |  ||  |  \  ' |  |    |  | OO )\  :` `.   |  |('-. /   |  | |  | |  /  | | |  |
 |  |'.'|  |\_) |  |\|  ||  |   ' |(|  '--. |  |`-' | '..`''.) /_) |OO  )\_) |  |\|  | |  |_.' |(|  '--.
 |  |   |  |  \ |  | |  ||  |   / : |  .--'(|  '---.'.-._)   \ ||  |`-'|   \ |  | |  | |  .___.' |  .--'
 |  |   |  |   `'  '-'  '|  '--'  / |  `---.|      | \       /(_'  '--'\    `'  '-'  ' |  |      |  `---.
 `--'   `--'     `-----' `-------'  `------'`------'  `-----'    `-----'      `-----'  `--'      `------'

usage: modelscope <command> [<args>]

positional arguments:
  {download,upload,clear-cache,plugin,pipeline,modelcard,model,server,login,llamafile,scan-cache}
                        modelscope commands helpers

options:
  -h, --help            show this help message and exit
  --token TOKEN         Specify ModelScope SDK token.

此刻,你掏出多年未打开的烟盒,双指夹出仅剩半截的中华,用你昨天从损友那顺来的火机点燃后,猛吸了一口,一股沁人心脾的满足感让你无比慰藉!

更多推荐