为什么电脑会python下载失败_False机器学习之nltk download出错:Error connecting to server: [Errno -2]...

机器学习常用到python的自然语言处理框架NLTK,这个是机器学习的常用包,在使用过程中会遇到不少问题。我会和大家分享在这其中的一些经验。

今天闲来说一下安装,在安装中出现的download错误。

>>> import nltk

>>> nltk.download()

NLTK Downloader

---------------------------------------------------------------------------

d) Download      l) List      c) Config      h) Help      q) Quit

---------------------------------------------------------------------------

www.002pc.com认为此文章对《False机器学习之nltk download出错:Error connecting to server: [Errno -2]》说的很在理,电脑技术网为你提供最佳的python基础,Python基础教程。

Downloader> l

Packages:

Error connecting to server: [Errno -2] Name or service not known

经过推测,是服务器无法连接下载服务器地址导致的。

查看一下nltk download配置

Downloader> c

Data Server:

- URL:

- 3 Package Collections Available

- 74 Individual Packages Available

Local Machine:

- Data directory: /home/wym/nltk_data

然后

> curl http://nltk.googlecode.com/svn/trunk/nltk_data/index.xml

报错:curl: (6) Couldn't resolve host 'nltk.googlecode.com'

google的地址肯定是被墙掉了(唉,大家懂的)

解决办法:

修改dns地址,

> vim /etc/resolv.conf

修改nameserver为:  nameserver  8.8.8.8

问题解决

更多:False机器学习之nltk download出错:Error connecting to server: [Errno -2]

https://www.002pc.comhttps://www.002pc.com/python/1266.html

你可能感兴趣的Errno,server,connecting,Error,download,nltk

PHP用fopen写追加数据Internal Server Error Apache

错误为Internal Server ErrorThe server encountered an internal error ormisconfiguration and was unable to

Lost connection to MySQL server at ‘reading initial communication packet’, system error: 111

最近遇到一个比较少见的问题,php连接mySQL的时候,会报错Lost connection to MySQL server at ‘reading initial communication packet

linux tftpyum list error Error: Cannot find a valid baseurl for repo: base

[Errno 4] IOError:

mysql事务运行过程MySQL ERROR 2013 (HY000)错误解决方法

当通过 TCP/IP 连接 MySQL 远程主机时,出现 ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial

mysql 中位数 函数解决Lost connection to MySQL server at 'reading i...

当通过 TCP/IP 连接 MySQL 远程主机时,出现 ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial

mysql 字符串累加mysql报ERROR 2002 (HY000)错误的解决办法

shell>mysql -uroot -p123456 ERROR 2002 (HY000): Can't connect to local MySQL server through socket

mysql 新建root用户ERROR 2002解决办法 mysql

[root@localhost ~]# mysql

ERROR 2002 (HY000): Can't connect to local MySQL server through socket

mysql 部署架构MYSQL Error2003错误解决方案

环境:win7+MYSQL Server 5.6;错误:在命令行执行mysql.exe -uroot -p 出现错误信息"ERROR 2003(HY000): Can't connect

FalseLost connection to MySQL server at ‘reading initial communication packet’

通过TCP/IP 远程连接mysql的时候出现服务器2013 error :MySQL server at 'reading initial communication packet'

有关Mysql出现Lost connection to MySQL server at 'reading initial communication packet', system

Warning《有关Mysql出现Lost connection to MySQL server at 'reading initial communication packet',

0踩

0 赞

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值