urllib2.URLError:

前端 未结 6 1131
小蘑菇
小蘑菇 2020-11-30 09:10

If I run:

urllib2.urlopen(\'http://google.com\')

even if I use another url, I get the same error.

I\'m pretty sure there is no fire

6条回答
  •  死守一世寂寞
    2020-11-30 09:20

    The problem, in my case, was that some install at some point defined an environment variable http_proxy on my machine when I had no proxy.

    Removing the http_proxy environment variable fixed the problem.

提交回复
热议问题