URLError: <urlopen error [Errno 110] Connection timed out> Proxy Error

URLError: <urlopen error [Errno 110] Connection timed out> Proxy Error

我正在尝试使用 Matplotlib 和 arcgisimage 下载并使用 arcgis REST API 服务绘制图像。下面是我 运行 遇到的一个片段错误。我怀疑我无法连接到此 arcgis 服务器,因为我被组织的防火墙阻止了。通常当我想下载一些东西时,比如使用 pip,我必须输入一个代理,即 proxy.**.gov:8080。我将如何绕过这个防火墙?我在没有防火墙的情况下在家里测试了我的代码,arcgisimage 工作正常,这就是为什么我怀疑它是防火墙问题。谢谢

/opt/antelope/python2.7.8/lib/python2.7/urllib2.pyc in do_open(self, http_class, req)
   1182         except socket.error, err: # XXX what error?
   1183             h.close()
-> 1184             raise URLError(err)
   1185         else:
   1186             try:

URLError: <urlopen error [Errno 110] Connection timed out>

我做了以下操作,这应该有效:

$ export http_proxy='http://myproxy.example.com:1234'
$ python myscript.py  # Using http://myproxy.example.com:1234 as a proxy