由于代理设置,我在安装sublime text 3的package control时遇到了问题,但我需要安装插件。当我在控制台中输入getproxy
时,它返回给我{},当我尝试使用以下命令在控制台中设置代理时:
urllib.set_proxy('http://user:password@server:port', 'http')
我用实际值替换了用户、密码、服务器和端口,但它返回给我:
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'set_proxy'
我该怎么做才能使其正常工作?我需要安装一个插件。