Skip to content
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 installing planarity on Windows #17

Open
TSOTOF opened this issue Sep 24, 2024 · 2 comments
Open

Error installing planarity on Windows #17

TSOTOF opened this issue Sep 24, 2024 · 2 comments

Comments

@TSOTOF
Copy link

TSOTOF commented Sep 24, 2024

I have a problem when installing this package into my computer:

pip install planarity

At the beginning I got the following error:
2dfa9f5697c487aa65de00a71fbef9f
After installing Visual Studio 2022, the error changed to this:
屏幕截图 2024-09-24 105214
I ask my friend to install planarity in his Windows computer and he got the same error with me.
I checked my envirment variables, path 'C:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' is included.
I uninstlled my Visual Studio and changed it's file from Program Files(x86) to Program Files, but it didn't work.
I tried to download the package and directly install it, which also failed.
In the end I turn to networkx.is_planar, but this function is based on python and it is too slow.
Is there any suggestions for my problem?

@hagberg
Copy link
Owner

hagberg commented Sep 24, 2024 via email

@TSOTOF
Copy link
Author

TSOTOF commented Sep 24, 2024

Thank you so much!
I didn't realize my problem is the same with #15 before.
I downloaded the latest release https://pypi.org/project/planarity/#files and installed it, but I got the same error(missing unistd.h). I tried #15 and it workd really well!
屏幕截图 2024-09-24 232106
This problem seems common on Windows when compling codes written on Linux or Unix.
Why don't we simply put file unistd.h and getopt.h into path 'planarity\src'?I know few about C++, but #15 seems to be a good solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants