简体   繁体   English

无法使用 pip 安装 nltk

[英]Unable to install nltk using pip

Hi I am unable to install nltk.您好,我无法安装 nltk。 I have already install Python.我已经安装了 Python。

C:\\Users>pip install nltk C:\\Users>pip install nltk

Downloading/unpacking nltk Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement nltk Cleaning up... No distributions at all found for nltk Storing debug log for failure in C:\\Users\\pinnapav\\pip\\pip.log下载/解包 nltk 无法获取索引基本 URL https://pypi.python.org/simple/找不到任何满足要求的下载 nltk 正在清理...根本找不到 nltk 的发行版 将调试日志存储在 C 中:\\用户\\pinnapav\\pip\\pip.log

Try to use the command py -m pip install --upgrade nltk !尝试使用命令py -m pip install --upgrade nltk This worked on my computer, with the same, basic Python-Installation.这在我的计算机上工作,具有相同的基本 Python 安装。

Now you can mark as Answered ^-^现在您可以标记为已回答 ^-^

Try to update pip:尝试更新pip:

pip install --upgrade pip
pip install --upgrade nltk

Worked for me!为我工作!

Use:使用:

pip install --upgrade nltk

Sometimes it still throws the error for SSL if you use:如果您使用,有时它仍然会引发 SSL 错误:

py -m pip install --upgrade nltk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM