-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import pySLSQP on mac-m1 #38
Comments
You need to pass
Perhaps you need to define
If you need other extra compiler arguments, such as |
Hi madebr, thanks for the hint and the quick reply! The "CFLAGS & LDFLAGS" didn't work, but I do find a related suspicious point: However, I couldn't find the valid plat-name for mac 12.1 arm64 on Internet... Do you have any further suggestions? I will surely search more. Thanks! |
First of all, make sure you're running a python arm executable. |
Thanks~ I will try it later. I am now reinstalling pure python without conda to make the environment simple and standard, after some googling as well. I will definitely try the suggestion after that. Thanks! |
Hi @madebr , thanks again for the help! The problem is from conda... After re-installing python3.9 without conda, the default value of plat-name for "python setup.py build_ext" becomes "macosx-10.9-universal2". The installation went smoothly afterward. |
Hi, I have a similar issue to this. I managed to install pyOpt on my system (mac-m1, 12.1, py3.8.8, gfortran) without errors and have done everything as suggested. However, I cannot import SLSQP as well.
I am now stuck with the error while "import slsqp" in the pyOpt/pySLSQP directory. The error message said that "mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')"
May I ask if this is expected? And is there a solution to use pyOpt on mac-m1? Thanks!
The text was updated successfully, but these errors were encountered: