Skip to content

[FEATURE REQUEST] Custom mirror sources for pip and npm repositories #1215

Open

Description

@alistairx256

Please confirm these before moving forward

  • I have searched for my feature proposal and not found a work-in-progress/duplicate/resolved/discarded issue.
  • This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template

Describe the new feature

Users can switch mirror sources for pip and npm repositories

Describe how this new feature could help users.

Provide faster download speed and better experience for users in some countries or regions that use the official warehouse to download slowly

Activity

  1. added
    new-feature
    on Jul 13, 2023
  2. changed the title [-][FEATURE REQUEST] (Enter your description here)[/-] [+][FEATURE REQUEST] Custom mirror sources for pip and npm repositories[/+] on Jul 14, 2023
  3. marticliment commented on Jul 14, 2023

    @marticliment
    Collaborator

    I did not know that was possible. Can you please post an example of how do you do that?

  4. alistairx256 commented on Jul 14, 2023

    @alistairx256
    Author

    This is my ui design.

    GIF 2023-7-14 21-37-30

    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.

    Snipaste_2023-07-14_21-44-53

  5. marticliment commented on Jul 14, 2023

    @marticliment
    Collaborator

    This is my ui design.

    Thanks for the example, but I meant how to get pip.exe to actually change the source

  6. alistairx256 commented on Jul 14, 2023

    @alistairx256
    Author

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

new-featureready-to-go

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions