uqfoundation / mystic

constrained nonlinear optimization for scientific machine learning, UQ, and AI
http://mystic.rtfd.io
Other
467 stars 50 forks source link

pip installation errors #170

Closed DBvdHeijden closed 2 years ago

DBvdHeijden commented 2 years ago

Hi all!

When trying to install (either through pip or conda) I get an error with the numpy package (Failed building wheel for numpy). I saw this was an issue for someone else two months back, but don't really know how to solve this.. Any help would be much appreciated!

Thanks!

mmckerns commented 2 years ago

I'm not seeing any build errors on any version of the supported python codes, platforms, and dependencies. What is your OS and version of python? What is your version of mystic and dependencies (e.g. numpy)?

mmckerns commented 2 years ago

This sounds like it might be a duplicate of #164.

DBvdHeijden commented 2 years ago

Hi! Thanks for the response - I thought I was running the latest version of python but apparently I was running 2.7 in my conda environment I see now (very dumb haha).. Will try to update to the latest version! Also, thank you for your work on mystic :)

mmckerns commented 2 years ago

Ok. Let me know if you still have issues. By the way, python 2.7 is still supported, however support will be dropped this month (immediately after to the pending release is out).

DBvdHeijden commented 2 years ago

So, I think I was running a newer version of python after all (3.9.7), but the command I used gave the python version the OS itself is running (I think?). I am running macOS Monterey (12.2.1) on a new M1 pro MacBook. My numpy version is 1.22.1 - any tips on what to do?

mmckerns commented 2 years ago

It sounds like this is a duplicate. This will be fixed with the next released mystic, which should happen in about a week or so. However, for a first attempt at a workaround, can you can try: pip install mystic --no-binary :all:...?

mmckerns commented 2 years ago

I'm going to close this as a duplicate, but feel free to keep the thread going here until you have resolution. We can reopen it if it ends up not being a duplicate.