Crunch-UQ4MI / neuraluq

150 stars 33 forks source link

pip installer for neuraluq #21

Open jaehlers opened 1 year ago

jaehlers commented 1 year ago

When I imported neuraluq, I ran into the error: ModuleNotFoundError: No module named 'tensorflow.compat' From stackoverflow posts on the topic, it seems the error comes from filename clashes, and that it sometimes works to switch to pip installation from the deprecated setup.py method. I rebuilt the package under hatch, published to the PyPI test repo, and installed via pip from there, and that seemed to fix the issue. I'm happy to share my very minor changes if that helps to get neuraluq updated to be compatible with pip.

ZongrenZou commented 1 year ago

Hi, I think the issue came from installing neuraluq using pip install. Currently we recommend using "python setup.py install". Let me know if it does not resolve the issue.

jaehlers commented 1 year ago

Thank you for your quick reply! I got the tensorflow.compat error when I tried to install neuraluq with "python setup.py install". I was able to get neuraluq to work by building it into a .whl and installing with pip.