【问题标题】:PackagesNotFoundError: The following packages are not available from current channels (ngram)PackagesNotFoundError:当前频道不提供以下软件包(ngram)
【发布时间】:2018-07-27 10:41:45
【问题描述】:

我正在尝试在 python 中安装 ngram,但它给出了错误。我尝试了这些代码,但它们都给出了同样的错误:

conda install ngram

秒:

conda config --add channels loopbio
conda config --append channels conda-forge
conda install ngram -c conda-forge

错误是:

Solving environment: failed

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

  - ngram

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/loopbio/win-64
  - https://conda.anaconda.org/loopbio/noarch
  - https://repo.continuum.io/pkgs/main/win-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/win-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/win-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/win-64
  - https://repo.continuum.io/pkgs/pro/noarch
  - https://repo.continuum.io/pkgs/msys2/win-64
  - https://repo.continuum.io/pkgs/msys2/noarch

我该如何解决?

我也试过了

pip install ngram

【问题讨论】:

标签: python anaconda conda n-gram


【解决方案1】:

Searching on anaconda.org 显示此包不在您搜索的任何频道中。 ngram 包的pypi page 表明它与Python 2.6、2.7 和3.2 兼容。如果您使用的是 Python 3,则很可能您使用的是更新的版本,例如 3.5 或 3.6,这个包似乎不支持。您可以尝试通过从github 下载并运行python setup.py install 来从源代码安装它。

【讨论】:

    猜你喜欢
    • 2018-07-07
    • 1970-01-01
    • 2021-12-10
    • 2020-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-20
    • 2020-10-13
    相关资源
    最近更新 更多