ai4co / rl4co

A PyTorch library for all things Reinforcement Learning (RL) for Combinatorial Optimization (CO)
https://rl4.co
MIT License
455 stars 84 forks source link

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

Closed hyeok9855 closed 1 year ago

hyeok9855 commented 1 year ago

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

fedebotu commented 1 year ago

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