ai4co / rl4co

A PyTorch library for all things Reinforcement Learning (RL) for Combinatorial Optimization (CO)

Home Page:https://rl4.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Can't install rl4co in CPython3.11

hyeok9855 opened this issue · comments

Describe the bug

Can't install rl4co with pip install rl4co or pip install -e . in CPython3.11.

This is because torchrl is not supported in CPython3.11 (see this torchrl issue).

To Reproduce

Please refer to the torchrl issue.

Screenshots

image

Reason and Possible fixes

Maybe specify the right python version that works (e.g. 3.10)?

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have provided a minimal working example to reproduce the bug (required)

Hi @hyeok9855 ! Thanks for dropping by. We are aware of the issue and indeed for the time being we are also not testing on the latest Python version because of this problem.
Python 3.11 was recently introduced here in the TorchRL nightlies, so we plan to wait for the latest stable version of TorchRL!
Let's specify the Python version in pyproject.toml for now :)


Example installation with conda:

conda create --name rl4co python=3.10
pip install rl4co