-
Notifications
You must be signed in to change notification settings - Fork 610
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
Does not install on Windows #8
Comments
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
I think the problem was the compile_args flags being set up in setup.py . For windows machines I've changed the flags to be what are expected here: https://msdn.microsoft.com/en-us/library/fwkeyyhe.aspx in the last commit Could you verify this works? I don't have a windows machine to test on currently. I've uploaded these changes to pypi so going 'pip install implicit' should work |
Thank you so much for looking into this! Installation works now, but importing throws an error:
I am still figuring out what's wrong here. |
So - I tried to add windows continuous integration support just now, without success for the moment: https://ci.appveyor.com/project/benfred/implicit . Will come back to it later I think the error you have there might be related to a 64bit/32bit clash (though I'm not totally sure) This page https://github.com/cython/cython/wiki/CythonExtensionsOnWindows has some info on building cython extensions on windows that might help here According to that page these errors might need these commands run:
in a command shell before trying to go pip install. Let me know if this helps |
Apparently the option The actual error is as follows:
PS: Not a single issue on Mac OS X though. PS2: I forgot to mention, execution the commands you mentioned in the previous post didn't work. For one thing there doesn't seem to be a 'setenv' command anymore in the visual studio 2015 distribution (with its Microsoft SDK) |
So I think this commit fixes: 1ecca73 The build is running and tests complete on windows with appveyor at least: https://ci.appveyor.com/project/benfred/implicit |
Thank you so much for looking into this! 👍 Upon retrying I see different errors, regarding to my MS compiler version, which is obviously out of your control. |
I know it is really late but I am getting the same error while installing this on win 7 through pip I tried to do the setenv command but it didnt work Does this have something to do with newer python version ? |
@Aashit-Sharma What error are you seeing? There are a couple different ones in the thread above. Also, there are now pre-built windows binaries that can be installed via conda-forge by |
pip install implicit
fails on Windows 7.After first fixing the issue of nog finding the VS C++ compiler (by installing the appropriate VS build tools), now the setup reports "failed building wheel" for this package.
Additionaly this message appears:
I tried checking for the CFLAGS in a previously mentioned issue (that one was on Mac OSX though):
Any idea what is going on here?
The text was updated successfully, but these errors were encountered: