PackagesNotFoundError:当前频道中没有下列程序包

2024-05-19 00:40:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在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

Tags: installhttpsioorg错误repoanacondaconda
1条回答
网友
1楼 · 发布于 2024-05-19 00:40:08

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,尝试从源代码安装它。

相关问题 更多 >

    热门问题