gym_longicontrol
gym_longicontrol copied to clipboard
ModuleNotFoundError
Whenever I try to run the project after iniatlising it and I want to visualize it, I run the code->
python3 main.py --load_id 9 -vis
After this I get the error->
ModuleNotFoundError: No module named 'sklearn.neural_network.multilayer_perceptron
Running on- Ubuntu 22.04 LTS Python 3.10.12 Torch 2.1.1+cpu scikit-learn 1.3.1 Tensorflow 2.15 shap 0.43.0 gym 0.26.2 numpy 1.26.2
Hi,
LongiControl is not updated to the current versions of scikit-learn and especially gym(nasium).
Just for verification, could you try again with gym==0.12.1
and scikit-learn==0.21.2
?
@dohmjan So I tried installing these versions and gym works fine but scikit is not installing for this particular version and gives the error ->
ERROR: Could not build wheels for scikit-learn, which is required to install pyproject.toml-based projects
Also gives the note->
note: This error originates from a subprocess, and is likely not a problem with pip.
Sorry it's hard to help you with that. Try maybe different versions of scikit_learn, e.g. scikit_learn==0.22.2.post1
. Maybe also using Python3.8 might do it.
Maybe this link is of help.
@dohmjan Well alright can you tell me the exact version requirements for which you are sure that the project definitely works? So that would include the python version, scikit version etc.