You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] Custom mirror sources for pip and npm repositories #1215
changed the title [-][FEATURE REQUEST] (Enter your description here)[/-][+][FEATURE REQUEST] Custom mirror sources for pip and npm repositories[/+]on Jul 14, 2023
I think this pip update is updated using commands. Here, it should be possible to add a judgment to add a temporary mirror source to realize this function. For pip and npm to check for updates, it is recommended to use the official source, after all, the official source is updated faster.
Because it is updated using commands, for pip you can enable temporary source, for example pip install [package name] -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
Activity
[-][FEATURE REQUEST] (Enter your description here)[/-][+][FEATURE REQUEST] Custom mirror sources for pip and npm repositories[/+]marticliment commentedon Jul 14, 2023
I did not know that was possible. Can you please post an example of how do you do that?
alistairx256 commentedon Jul 14, 2023
This is my ui design.
I think this pip update is updated using commands. Here, it should be possible to add a judgment to add a temporary mirror source to realize this function. For pip and npm to check for updates, it is recommended to use the official source, after all, the official source is updated faster.
marticliment commentedon Jul 14, 2023
Thanks for the example, but I meant how to get pip.exe to actually change the source
alistairx256 commentedon Jul 14, 2023
Because it is updated using commands, for pip you can enable temporary source, for example
pip install [package name] -i https://pypi.tuna.tsinghua.edu.cn/simple some-package