gpt4 book ai didi

python - PackagesNotFoundError : The following packages are not available from current channels (ngram)

转载 作者:行者123 更新时间:2023-11-28 22:20:37 25 4
gpt4 key购买 nike

我正在尝试在 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

最佳答案

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

关于python - PackagesNotFoundError : The following packages are not available from current channels (ngram),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48828176/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com