-
Notifications
You must be signed in to change notification settings - Fork 612
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
Installing on Mac OSX #1
Comments
Looks like I messed up on the install script =( will see about fixing tonight As a short term hack to install, you can go 'cython implicit/_implicit.pyx' to generate the _implicit.c file, and then you should be able to install from source. |
Hello @benfred, I still got error after doing
(I'm on Mac OSX also) |
@titipata Can you run this to see what the build flags are in your python install? python -c 'import sysconfig; print(sysconfig.get_config_var("CFLAGS"))' It should print out something like:
I think maybe the CFLAGS in your python install are messed up somehow. You can try to fix by tweaking the ' _sysconfigdata.py' file in your python library. |
@benfred, here is an output when I run following command.
Here is output when I run
I will thoroughly check what's the exact problem that I have. |
I guess the problem may sloved after you running I try to run Good luck! |
OSX installs were failing if an openmp compatible compiler wasn't found, backoff to using clang without openmp in this case #1 On windows, we were passing in compile flags that weren't valid. Visual Studo expects the '/W' flag to be an integer specifying the warning level, and we were passing in a 'Wno-unused-function' to disable a warning. #8 . Try to pass in the appropiate options here
We've tweaked the install script here recently - the compiled _implicit.c file is checked in, and I've changed the setup.py script to not require an openmp compatible compiler (if will just log an warning if it can't find one instead). I think these issues should be resolved with these changes |
Hi @benfred
I re-installed gcc using Any suggestions?
|
I don't know where those flags could be coming from - there are valid for Clang but not for GCC. =( I thought that the flags get imported from the sysconfig.get_config_var("CFLAGS") setting in your python distribution - but it doesn't look that for your (the compile flags you printed out aren't included, and the incorrect ones are there instead). Maybe you can add a line to the setup.py file to go like 'import sysconfig; print(sysconfig.get_config_var("CFLAGS"))' just to make sure that this works. Alternatively, if you uninstall the GCC compiler from brew (or comment out the 'set_gcc' function in setup.py) this should skip trying to find an openmp compiler and go with clang instead - which should work, just be single threaded |
I have this error with GCC. Without GCC it works just fine. |
Hello @benfred, I'm trying to install the library but I am running into a similar error. The first time I tried installing the library I typed the given command line from the documentation "pip install implicit". A window then popped up asking me to if I would like to install gcc for the library in which I clicked install. This eventually gave me an error that came with a bunch of disable code and a gcc error. I then try to install the library by cloning and I still get the following error stating that a random file is not found. Any thoughts on what I can do to fix this? EDIT: It seems the way i installed gcc did not cut it. It had to be installed through homebrew. Thanks running install |
@oppaquan I was getting this same error. Upgrading my OS (mac) fixed it. Basically my LLVM and clang where not up-to-date. |
pip install implicit
initially fails to find GCC since clang gcc is located in/usr/bin/gcc
After adding
/usr/bin/gcc
tosetup.py
I get:gcc: error: implicit/_implicit.c: No such file or directory
I also tried installing gcc via Homebrew and installing from source:
Don't know if there were recent changes but it looks like
implict/_implicit.c
is missingThe text was updated successfully, but these errors were encountered: