mit-acl / gym-collision-avoidance

MIT License
242 stars 74 forks source link

ModuleNotFoundError: No module named 'scipy' when running example.sh #18

Closed jx2518 closed 11 months ago

jx2518 commented 11 months ago

Hi, when trying to simulate the Minimun Working Example, I encountered the following issue where I was prompted that: No module named 'scipy'. However, I installed scipy/scipy3-python both using pip and apt-get already. Would this possibly be a problem because the codes aren't fully compatible with the new version of Python?

This problem showed up while I was using Python 3.10 in Ubuntu, I tried to downgrade Python to 3.9 but the issue persists.

Could you please help? Thank you so much!

Scipy_bug
mfe7 commented 11 months ago

when you install scipy through apt it probably is installing the pkg within your system python environment. but the example script sources a virtual environment to run the python code inside of. i would suggest entering the virtualenv (usually something like source venv/bin/activate) then pip installing scipy within the virtualenv and it should address that issue. but, i'm surprised that scipy wasn't installed into the virtualenv using the install script

jx2518 commented 11 months ago

Thank you very much! Yes I think running install.sh installs everything needed except scipy. With manually installing it into the venv it is working now!