Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

PIP downloading again package already installed

I am trying to install tsai. When doing so, PIP tries to download PyTorch:

Collecting torch<1.14,>=1.7.0 (from tsai==0.3.5)

However, I already have a version that matches 1.7 < my version < 1.14. See:

$ pip list | grep torch
torch                         1.8.1

Why is this happening and how can I prevent it?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This does seem like a bug in pip. Consider reporting this there. It looks like pip is unable to recognize that the currently installed torch==1.8.1 wheel is compatible with Python 3.8.

With uv pip install tsai==0.3.5, torch is not being fetched again.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading