You may also need to use SOCKS5 for host name resolutions. In that case use socks5h://
protocol instead of socks5://
:
pip install package_name --proxy socks5h://127.0.0.1:13789
Before that you need to install PySocks. You can manually download its WHL from here.