No way to configure corporate pip index URL for environment creation / package install UI on Windows
@edvilme ci sta già lavorando.
Dal 1/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Environment
- OS: Windows 11 Enterprise
- VS Code: 1.104.x
- Python Environments extension: latest (1.20.x)
- Python: 3.11 / 3.12
- Package manager: pip / uv
- Network: corporate network with private PyPI mirror (
--index-url https://pypi.corp/simple) and strict--no-default-indexpolicy (public pypi.org blocked)
Problem
The extension's "Create Environment" and "Install Package" UI invokes pip install / uv pip install without respecting a configured --index-url or --extra-index-url. On corporate machines where pypi.org is blocked:
- Creating a new venv via the extension's GUI picker succeeds, but any package the extension auto-installs (e.g.,
pipupgrade,wheel) fails silently. - The "Packages" panel's "Install" button runs
pip install <pkg>againstpypi.org— always fails. - There is no
python-envs.pip.indexUrlor equivalent setting to redirect to the internal mirror.
Expected
Expose a setting:
"python-envs.packageManager.extraArgs": ["--index-url", "https://pypi.corp/simple", "--trusted-host", "pypi.corp"]
that is appended to every pip install / uv pip install invocation the extension makes on behalf of the user.
Alternatively: the extension should inherit pip.ini / pip.conf if already set in the system (pip already supports this), and the README should document that %APPDATA%\pip\pip.ini is the right place to set [global] index-url for the extension to pick up.
Workaround
Setting [global] index-url in %APPDATA%\pip\pip.ini works for terminal invocations but the extension appears to spawn pip in a way that may not pick up user-level pip.ini on Windows (path resolution differs for subprocess vs terminal shell).
- Lingua principale
- TypeScript
- Stelle
- 140
- Fork
- 63
- Merge medio
- 1g 4h
- PR unite (30g)
- 35
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/vscode-python-environments
-
microsoft/vscode-python-environments#1799 · 1 assegnatario ·
-
microsoft/vscode-python-environments#1796 · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
triage-needed
microsoft/vscode-python-environments#1791 · 1 reazione · 2 assegnatari ·
-
triage-needed
Difficoltà 4/5 3-5 giorni Idoneità per principianti 74/100
microsoft/vscode-python-environments#1779 · 1 commento · 1 reazione ·
Tutte le issue di microsoft/vscode-python-environments
Issue simili
-
Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenNSW/nsw-srilanka#497 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
digidem/comapeo-cloud-app#403 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100