-
Notifications
You must be signed in to change notification settings - Fork 89
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
Error building on Windows #82
Comments
same here on Mac. This is recent as it used to work... |
I recreated the whole thing:
and now it works! so maybe it's just about refreshing the cached installation |
Thanks @marcglobality - I just tried the same but seems the error persists so assuming this is a Windows specific thing? Some of the steps for windows are different and they all work down to the last step of pip install which is done as follows: pip install postal --global-option=build_ext --global-option="-IC:\dev\libpostal\headers\include" --global-option="-LC:\dev\libpostal" But results in the same error - any advice much appreciated! |
where did you find those options? it seems very similar Windows vs Mac: https://github.com/openvenues/libpostal#installation-windows in any case, I've done almost no coding on Windows, so I don't think can help. Good luck :) |
These are the Windows instructions that are supposed to work: Installing libpostal on Windows Install msys2 and launch a shell using the
Now start a command prompt which has access to the Microsoft toolchain. This can be done by e.g. installing the Windows 10 SDK and then running the Assuming your MSYS and Python are installed in some standard locations, you can use this command prompt to build+install the Python library like so:
|
Just to add, I think this relates to the MSVC compiler options being passed perhaps? If anyone has a working Windows environment I would be interested to know which MSVC version you have and if any additional options were passed to cl.exe to get it to compile successfully. |
hey I got this type of error can u help me ? |
I am trying to build libarchive with help of visual studio community |
Hi All,
I am trying to build pypostal on Windows and have successfully built the postal.lib but when I attempt to "pip install postal" I get this error. Any ideas on how to fix this please?
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> postal
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
The text was updated successfully, but these errors were encountered: