首先用conda命令安装pysocks:
conda install -c anaconda pysocks
再运行
pip install requests[socks]
查看all_proxy
set | grep -i all_proxy
得到
ip.png
修改all_proxy为
export all_proxy="socks5://127.0.0.1:1080/"
参考教程: https://blog.csdn.net/vivian_wanjin/article/details/84976711
网友评论