Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Auto-Resume Downloads in pip #12860

Closed
1 task done
shaun-barnard opened this issue Jul 19, 2024 · 1 comment
Closed
1 task done

Feature Request: Auto-Resume Downloads in pip #12860

shaun-barnard opened this issue Jul 19, 2024 · 1 comment
Labels
C: download About fetching data from PyPI and other sources resolution: duplicate Duplicate of an existing issue/PR type: feature request Request for a new feature

Comments

@shaun-barnard
Copy link

What's the problem this feature will solve?

I am trying to install large packages using pip, but when the download fails, I am unable to resume it. Instead, I have to restart the download, which can be time-consuming and frustrating.
The current lack of an auto-resume feature in pip means that when a download fails—due to network issues, server timeouts, or other interruptions—users must restart the entire download from the beginning. This can be particularly frustrating when dealing with large packages. Users often waste time and bandwidth, leading to a poor experience, especially in environments with unstable internet connections.

Describe the solution you'd like

I would like pip to include an auto-resume feature for downloads. This feature would allow pip to automatically resume interrupted downloads from where they left off, rather than starting over.

  • Complex Projects: In projects that rely on multiple large packages, such as data science or deep learning projects, a single failed download can halt the entire setup process. An auto-resume feature would allow developers to continue their work without needing to restart lengthy installations.
  • Remote Environments: Users working in cloud environments or remote servers may experience network interruptions. An auto-resume feature would enhance the reliability of installations in these scenarios, making pip more robust for professional use.

Alternative Solutions

I have attempted to work around the problem by using external tools like wget or curl to download large packages manually, as these tools support resuming downloads. However, this approach adds complexity to the installation process, as I then have to manually install the downloaded packages using pip. This is not ideal, as it defeats the purpose of having a streamlined package manager like pip.
Additionally, I have explored using local mirrors or caching solutions, but these methods can be cumbersome to set up and maintain, especially for users who frequently change environments or work on different projects.

Additional context

  • The lack of an auto-resume feature is a common pain point among users dealing with large downloads in pip.
  • Many users have expressed similar frustrations in forums and discussions related to pip and package management.
  • Implementing this feature could significantly improve user experience.

Code of Conduct

@shaun-barnard shaun-barnard added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Jul 19, 2024
@notatallshaw notatallshaw added C: download About fetching data from PyPI and other sources resolution: duplicate Duplicate of an existing issue/PR and removed S: needs triage Issues/PRs that need to be triaged labels Jul 19, 2024
@notatallshaw
Copy link
Member

Hi, thanks for reporting. This feature has been discussed in #4796.

In summary, the current stance is that in principle this feature would be accepted should a suitable PR be submitted to pip.

@notatallshaw notatallshaw closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: download About fetching data from PyPI and other sources resolution: duplicate Duplicate of an existing issue/PR type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants