Open hans66hsu opened 1 year ago
Hello @hans66hsu,
I'm not sure why this is happening, maybe try to reinstall the PyTorch version you'd like to use? learn2learn should be compatible with any pytorch>=1.1.0 (which is what we specify in the requirements).
I suspected it's because PyTorch is named "pytorch" instead of "torch" when installing from conda. I solved it by removing torch and torchvision in setup.py and built it in pip install -e .
It would be nice if a conda version can be released in the future.
My environment already has Pytorch(1.12.1) installed with conda.
While I run
pip install learn2learn
the wheel cant recognize the existing pytorch and installed another new one (Pytorch 2.0.1). It should be "satisfied" instead of "collecting" if the package was recognized.At the end, my original PyTorch was removed due to conflicts.
The output of
which -a pip
:The reason I need PyTorch 1.12.1 is for compatibility with other learning framework packages (such as PyG). Do you know any reasons why it can't recognize the already installed PyTorch?