Products
GG网络技术分享 2025-11-12 11:43 7
根据上文,
bash
export http_proxy=http://proxy.example.com:8080
export https_proxy=http://proxy.example.com:8080
cmd
set http_proxy=http://proxy.example.com:8080
set https_proxy=http://proxy.example.com:8080
bash
pip install SomePackage
~/.pip/pip.conf,在Windows系统中是%APPDATA%\pip\pip.ini。ini
proxy = http://proxy.example.com:8080
--proxy参数指定代理服务器:
bash
pip install SomePackage --proxy http://proxy.example.com:8080
设置代理后 Neng用以下命令验证是不是设置成功:
bash
echo $http_proxy
echo $https_proxy
Ru果返回的代理服务器地址和端口号正确,则说明设置成功。

Demand feedback