【发布时间】:2018-07-01 08:02:16
【问题描述】:
如何为 Anaconda 安装 stop-words,我将它用于带有 Anaconda-Navigator 的 jupyter notebook。
我可以使用pip3 install... 进行安装,但我需要使用conda install ... 进行安装,这样我才能使用该软件包。
最后,我希望能够在 jupyter 中执行 from stop_words import get_stop_words。
我试过了:
conda install stop-words
解决环境:失败
PackagesNotFoundError:以下包不可用 当前频道:
- 停用词
当前频道:
- https://repo.continuum.io/pkgs/main/osx-64
- https://repo.continuum.io/pkgs/main/noarch
- https://repo.continuum.io/pkgs/free/osx-64
- https://repo.continuum.io/pkgs/free/noarch
- https://repo.continuum.io/pkgs/r/osx-64
- https://repo.continuum.io/pkgs/r/noarch
- https://repo.continuum.io/pkgs/pro/osx-64
- https://repo.continuum.io/pkgs/pro/noarch
这里还有“Anaconda”指令,https://anaconda.org/pypi/stop-words。
To install this package with pip, first run:
anaconda login
and then:
pip install -i https://pypi.anaconda.org/pypi/simple stop-words
Or:
TOKEN=$(anaconda auth --create --name download-token)
and then:
pip install -i https://pypi.anaconda.org/t/$TOKEN/pypi/simple stop-words
但是这使用 pip 安装,而不是 conda。所以在这样做之后,我仍然无法访问 jupyter。
【问题讨论】:
-
你安装了nltk。使用:nltk.download('stopwords') 或 anaconda 终端类型:conda install -c anaconda nltk
标签: python-3.x anaconda stop-words