QianyanTech / Image-Downloader

Download images from Google, Bing, Baidu. 谷歌、百度、必应图片下载.
MIT License
2.23k stars 576 forks source link

Missing dependencies for SOCKS support #7

Closed wenju-he closed 7 years ago

wenju-he commented 7 years ago

When downloading from Google, i setup proxy as proxy_type = "socks5" proxy = "127.0.0.1:1080"

Download failed, error message is:

Fail: http://bpic.ooopic.com/11/05/28/49b1OOOPIC4f.jpg!/fw/780/quality/90/unsharp/true/compress/true ('Missing dependencies for SOCKS support.',)

Do you know why? Thanks.

sczhengyabin commented 7 years ago

@hewj03 pip install requests[socks]

wenju-he commented 7 years ago

E:>pip install requests[socks] Requirement already satisfied: requests[socks] in c:\python36\lib\site-packages Requirement already satisfied: PySocks!=1.5.7,>=1.5.6; extra == "socks" in c:\python36\lib\site-packages (from requests[socks])

So they are already installed.

wenju-he commented 7 years ago

This happens when i'm using Win10.

In ubuntu, it is ok. I can download images from google using the socks5 proxy.

sczhengyabin commented 7 years ago

@hewj03 Not sure what happend. Please recheck the python installation. Or try using Anaconda environment in windows instead. However, the alternative way to use proxy in win 10, is to set the application proxy to None while set the system-wide proxy to your own proxy. The system-wide proxy will also affect on this "Image-Downloader" .

wenju-he commented 7 years ago

ok, thanks a lot.