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

Uncap PyTorch version #2312

Open
Scaddams opened this issue Nov 30, 2021 · 1 comment
Open

Uncap PyTorch version #2312

Scaddams opened this issue Nov 30, 2021 · 1 comment

Comments

@Scaddams
Copy link

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.

@Scaddams Scaddams changed the title Incompatibility issues with Pythorch Incompatibility issues with Pytorch Nov 30, 2021
@krzentner
Copy link
Contributor

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.

@krzentner krzentner changed the title Incompatibility issues with Pytorch Uncap PyTorch version Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants