From 1a1e2274beaa58fbff7d76733883a94f1267e21b Mon Sep 17 00:00:00 2001 From: Atlas Date: Wed, 8 Apr 2026 15:37:29 -0700 Subject: [PATCH] =?UTF-8?q?Delete:=202025-01-28.md=20=E2=80=94=20Content?= =?UTF-8?q?=20extracted=20to=20ATLAS/IT=20Notes/pip-proxy-configuration.md?= =?UTF-8?q?=20with=20improved=20organization,=20proper=20tags,=20keywords,?= =?UTF-8?q?=20and=20summary.=20Original=20root-level=20date=20file=20no=20?= =?UTF-8?q?longer=20needed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2025-01-28.md | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 2025-01-28.md diff --git a/2025-01-28.md b/2025-01-28.md deleted file mode 100644 index aab42fd..0000000 --- a/2025-01-28.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -created: '2026-04-05T05:39:08+00:00' -id: 2228bc45-3724-4826-a9a6-b92df8c3ff28 -links: [] -modified: '2026-04-05T05:39:08+00:00' -summary: To resolve slow pip package installations in a colo-hosted environment, a - local proxy (mitmproxy) was implemented on Windows, requiring pip commands with - `--proxy` and `--trusted-host` flags, or for UV, setting environment variables like - `HTTP_PROXY`. -tags: [] -title: '2025-01-28' ---- - -#networking #python #ai - - Today, I had some trouble installing some pip/python packages at my colo hosted by Cogent in Anaheim. - -Pip direct installs were very slow. - -The problem was solved by running a local proxy on my windows machine (mitmproxy) - -The following command lines for PIP were used to make it work: - -```python -pip install --proxy http://10.0.10.10:8080 --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -``` - -When using UV, set environment variables: - -set environment variables -``` -HTTP_PROXY` -`HTTPS_PROXY` -ALL_PROXY'' -``` - -IE: - -> export ALL_PROXY=http://123.123.123.123:8080 \ No newline at end of file