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

403 link served on torch index url #2076

Closed
ddelange opened this issue Sep 12, 2023 · 7 comments
Closed

403 link served on torch index url #2076

ddelange opened this issue Sep 12, 2023 · 7 comments
Labels
help wanted Extra attention is needed question Further information is requested v1.0.x

Comments

@ddelange
Copy link

ddelange commented Sep 12, 2023

🐛 Bug

Hi 👋

pip install torch torchmetrics~=1.0.0 --extra-index-url https://download.pytorch.org/whl/cu118

Will attempt to download torchmetrics 1.0.3 from the torch index:
https://download.pytorch.org/whl/torchmetrics

The link hosted there will respond with 403 forbidden.

Could you remove that link?

Many thanks!

@ddelange ddelange added bug / fix Something isn't working help wanted Extra attention is needed labels Sep 12, 2023
@github-actions
Copy link

Hi! thanks for your contribution!, great first issue!

@Borda
Copy link
Member

Borda commented Sep 12, 2023

Hello, I think the the problem is using --extra-index-url so you shall use --find-links so your command will be:

apt update && \
apt install python3.7 python3-pip -y && \
pip3 install --upgrade pip && \
python3.7 -m pip install pytorch-lightning \
	--find-links=https://download.pytorch.org/whl/cu113/

@Borda Borda added question Further information is requested and removed bug / fix Something isn't working labels Sep 12, 2023
@Borda Borda added the v1.0.x label Sep 12, 2023
@ddelange
Copy link
Author

Hi @Borda, torch deprecated --find-links, also the official installation page now references --index-url / --extra-index-url.

--find-links still works if you point to a html page that contains <a> html tags pointing directly to wheels, so that would be

pip install torch torchvision \
  --find-links https://download.pytorch.org/whl/cu113/torch/ \
  --find-links https://download.pytorch.org/whl/cu113/torchvision/

Since they now host a PyPI index, installation options for end users have become more flexible. See for instance discussions at ray-project/ray#26072

@ddelange
Copy link
Author

The culprit link hosted on the torch index is https://download.pytorch.org/whl/torchmetrics-1.0.3-py3-none-any.whl

which will be preferred over torchmetrics 1.0.3 hosted on official PyPI, regardless wether the torch index is specified under --index-url or --extra-index-url.

@ddelange
Copy link
Author

Do you have the capability to get that link removed from the torch index?

@Borda
Copy link
Member

Borda commented Sep 12, 2023

Do you have the capability to get that link removed from the torch index?

We do not have any power over this index, please follow on official PyTorch issue... :(

@ddelange
Copy link
Author

OK:) done, ty for the quick reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested v1.0.x
Projects
None yet
Development

No branches or pull requests

2 participants