Python ecosystem

pip, uv, poetry, conda and Hugging Face downloads.

pip

bash
pip install --proxy http://127.0.0.1:7898 <package>
# permanent
pip config set global.proxy http://127.0.0.1:7898

uv

uv reads the HTTPS_PROXY / HTTP_PROXY / ALL_PROXY environment variables:

bash
export HTTPS_PROXY=http://127.0.0.1:7898
uv pip install torch
uv python install 3.13

poetry

poetry uses the environment variables: set the terminal variables, then run poetry install.

conda / mamba

bash
conda config --set proxy_servers.http http://127.0.0.1:7898
conda config --set proxy_servers.https http://127.0.0.1:7898

PyTorch CUDA wheels

bash
pip install torch --index-url https://download.pytorch.org/whl/cu126 --proxy http://127.0.0.1:7898

Hugging Face

huggingface_hub reads the environment variables:

bash
export HTTPS_PROXY=http://127.0.0.1:7898
huggingface-cli download meta-llama/Llama-3.1-8B --local-dir ./llama

If a large download is interrupted, run the same command again to resume.

Jupyter

Set the variables in the terminal that starts Jupyter; kernels inherit them:

bash
eval "$(cnb env)" && jupyter lab