Had*_*dij 3 python n-gram anaconda conda
我正在尝试在 python 中安装 ngram,但它给出了错误。我尝试了这些代码,但它们又都给出了相同的错误:
conda install ngram
Run Code Online (Sandbox Code Playgroud)
第二:
conda config --add channels loopbio
conda config --append channels conda-forge
conda install ngram -c conda-forge
Run Code Online (Sandbox Code Playgroud)
错误是:
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
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
我也试过
pip install ngram
Run Code Online (Sandbox Code Playgroud)
在 anaconda.org 上搜索显示该软件包不在您搜索的任何频道中。ngram 包的pypi 页面显示它与 Python 2.6、2.7 和 3.2 兼容。如果您使用的是 Python 3,很可能您使用的是更新的版本,例如 3.5 或 3.6,该软件包似乎不支持该版本。您可以尝试通过从github下载并运行python setup.py install.