dynamik1703 / gym_longicontrol

A new Reinforcement Learning Environment
33 stars 13 forks source link

ModuleNotFoundError #4

Open Paras-Shah-sudo opened 9 months ago

Paras-Shah-sudo commented 9 months ago

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

dohmjan commented 9 months ago

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?

Paras-Shah-sudo commented 9 months ago

@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.

dohmjan commented 9 months ago

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.

Paras-Shah-sudo commented 9 months ago

@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.