zhijian-liu / torchpack

A neural network training interface based on PyTorch, with a focus on flexibility
https://pypi.org/project/torchpack/
MIT License
61 stars 15 forks source link

Installing Torchpack removing older version of Torch #33

Closed sri13 closed 2 years ago

sri13 commented 2 years ago

Collecting torch>=1.5.0 Using cached torch-1.11.0-cp38-cp38-manylinux1_x86_64.whl (750.6 MB)


Attempting uninstall: torch Found existing installation: torch 1.10.2 Uninstalling torch-1.10.2: Successfully uninstalled torch-1.10.2 Successfully installed torch-1.11.0

zhijian-liu commented 2 years ago

This seems to be related to https://github.com/pypa/pip/issues/304. Could you try if this works?

pip install --upgrade --upgrade-strategy=only-if-needed torchpack
sri13 commented 2 years ago

Thanks. It fixed the issue.