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

Pip install error with gym and torch #64

Open
BaleChen opened this issue Jul 14, 2023 · 3 comments
Open

Pip install error with gym and torch #64

BaleChen opened this issue Jul 14, 2023 · 3 comments

Comments

@BaleChen
Copy link

Hi, I encountered this error when pip installing the rl4lm library using pip install -e . The message says

'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.

I found the solution to be first do pip install setuptools==65.5.0 pip==21, or even earlier versions according to this issue, though I suspect downgrading pip is not necessary.

As for torch=1.11.0, it is a relatively old package and seems to not support the latest version of Python. I didn't see you indicate your Python version so it would be nice to share it with everyone so that they won't encounter this dependency error. I downgraded from 3.11 to 3.8 and the error resolves.

Hope someone can have a look at this and see if it's my mistake or worth a PR.

@gopstrit
Copy link

You saved my day. Only had to pip install setuptools==65.5.0.

But, got an "ERROR: Could not find a version that satisfies the requirement pywin32==227" later on.

Will post the update if I manage to resolve that.

@BaleChen
Copy link
Author

Did you try downgrading your python version?

@FYYFU
Copy link

FYYFU commented May 31, 2024

issue this is the issue to solve opencv-python>=3. error.

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

3 participants