这段代码在linux上运行得很好,但windows在那里有错误。怎么了?
import urllib, urllib2
a = 'ftp://ftp.arin.net/pub/stats/arin/delegated-arin-latest'
urllib.urlopen(a)
IOError: [Errno ftp error] proxy support for ftp protocol currently not implemented
urllib2.urlopen(a)
URLError: <urlopen error ftp error: >发布于 2011-09-10 06:08:06
检查您的Internet Explorer中是否有一些代理设置: Menu Extras->Internet Options,there ->“LAN settings”(或类似的设置)。如果您设置了代理服务器,urllib将不起作用。
https://stackoverflow.com/questions/7367713
复制相似问题