Skip to content

Update PyTorch and related dependencies to latest compatible versions #5

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dandinu
Copy link

@dandinu dandinu commented Mar 21, 2025

Issue

The project's requirements.txt was using outdated versions of PyTorch and related packages that are no longer available in PyPI:

  • torch==2.2.1 → Not available, only 2.6.0 is available
  • torchvision==0.17.1 → Not available, only 0.21.0 is available
  • onnxruntime==1.19.2 → Not available, only 1.20.0+ is available

Changes Made

  • Updated torch from 2.2.1 to 2.6.0
  • Updated torchvision from 0.17.1 to 0.21.0
  • Updated onnxruntime from 1.19.2 to 1.21.0

Why This Happened

These issues occurred because:

  1. PyPI (Python Package Index) maintains only the most recent versions of packages
  2. When older versions are deprecated or removed, pip can no longer find them
  3. The original requirements.txt was likely created with versions that were current at the time, but have since been superseded

Testing

  • Verified that all updated versions are available in PyPI
  • Ensured compatibility between PyTorch and torchvision versions
  • Installation can now be completed successfully with pip install -r requirements.txt

@EndlessSora EndlessSora force-pushed the main branch 8 times, most recently from 0c1fa9e to 7e7faf3 Compare April 16, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant