rlworkgroup / garage

A toolkit for reproducible reinforcement learning research.
MIT License
1.84k stars 309 forks source link

Uncap PyTorch version #2312

Open Scaddams opened 2 years ago

Scaddams commented 2 years ago

I have been trying to install Garage by:

pip install --user garage And I get this error:

Installing collected packages: torch Attempting uninstall: torch Found existing installation: torch 1.10.0 Uninstalling torch-1.10.0: Successfully uninstalled torch-1.10.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchaudio 0.10.0 requires torch==1.10.0, but you have torch 1.7.1 which is incompatible. stable-baselines3 1.3.0 requires torch>=1.8.1, but you have torch 1.7.1 which is incompatible. Successfully installed torch-1.7.1

Why is garage trying to install a depreciated Torch version, specifically one that is not compatible, I am super confused, any help would be appreciated.

krzentner commented 2 years ago

Hello. Garage current specifies that it requires torch<1.8, since starting with version 1.8 torch.distributions.Independent validates it arguments, and our TanhNormal distribution uses invalid arguments to that class. If you're not using that distribution (or you cherry-pick PR #2249), you can just remove the cap in garage's requirement and it should work fine.