如何解决读取虹膜数据时出现的超时错误?

时间:2019-01-25 02:33:57

标签: python timeout

<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly

我用虹膜数据运行了pd.read_csv(url, names=['sepal length','sepal width','petal length','petal width','target'])。 但结果却是这样。

<urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly

我在公司里,所以我需要写 在提示中输入“ pip install --proxy = http://ep.threatpulse.net:80大熊猫” 为了安装熊猫。 这是代理问题吗?

import pandas as pd
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"

df = pd.read_csv(url, names=['sepal length','sepal width','petal length','petal width','target'])

0 个答案:

没有答案