Skip to content

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
@EndlessSora EndlessSora force-pushed the main branch 2 times, most recently from 09104be to aaa6ea5 Compare August 22, 2025 21:07
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