smt icon indicating copy to clipboard operation
smt copied to clipboard

Installation problem : Failed building wheel for smt

Open nnassar98 opened this issue 3 years ago • 8 comments

Hello,

I am trying to install smt on my MacBook (MacOS 12.0.1) via ´pip install smt´ but it failed (all dependencies have been separately installed to be sure).

The terminal displayed the following screenshots : screenshot1 screenshot2 screenshot3

nnassar98 avatar Nov 22 '21 13:11 nnassar98

It seems to be related to your installation. When I google your error message, I get this. Hope this helps.

relf avatar Nov 23 '21 18:11 relf

Just to say that I also originally had errors building 2 days ago, caused by the OS not being recognized (on the same day this was opened): I used the following commands to solve: export ARCHFLAGS="-arch x86_64" CC=clang CXX=clang++ python -m pip install smt I'm not sure if these two issues could be related or if it's just a coincidence. If they are not, please feel free to ignore.

marina8888 avatar Nov 24 '21 16:11 marina8888

Notice you can also try to use conda as SMT is available for MacOS on conda forge. I am not a MacOS user so difficult for me to help you further.

relf avatar Nov 24 '21 17:11 relf

I'm getting the same error on both macOS and Ubuntu, please help me.

hhyqhh avatar Feb 22 '22 05:02 hhyqhh

I'm getting the same error on both macOS and Ubuntu, please help me.

Note: In Ubuntu and derivatives you may need to install python-dev and/or python3-dev before installing smt.

jarq6c avatar Apr 06 '22 17:04 jarq6c

Hello! I'm getting the same error; however, I'm in Windows. Later I tried with my Macbook and still got the same results.

mariaelenavalencia avatar May 10 '23 20:05 mariaelenavalencia

Hi @mariaelenavalencia! You should not have exactly the same error on Windows as above as it is triggered by xcrun which is specific to MacOS install (see the last lines). Could you copy/paste your error on Windows? How do you install smt? Maybe you could also use conda as mentioned above.

relf avatar May 11 '23 10:05 relf

Hi! I installed the library with Conda without issues, both on Windows and Mac. Thank you very much!

Just for your information, here is the error obtained by my Mac when I tried pip (sorry for the format):

image

Thank you again!

mariaelenavalencia avatar May 11 '23 13:05 mariaelenavalencia