thunlp / OpenNE

An Open-Source Package for Network Embedding (NE)
MIT License
1.68k stars 485 forks source link

Cannot install on OS X #89

Closed sming closed 4 years ago

sming commented 5 years ago

Hi,

I'm trying to install on OS X 10.14.6 and the numpy build fails with: _configtest.c:1:10: fatal error: 'endian.h' file not found

I found this SO answer and followed the instructions to no avail.

Then I tried commenting out numpy from requirements.txt but then scipy failed to build.

Any help would be appreciated, Pete

sming commented 5 years ago

Actually I got python -m openne --help working by creating an environment.yml file with the packages from requirements.txt. I'll see if this actually runs.

sming commented 5 years ago

OK, the sample command: python -m src.openne --method node2vec --label-file data/blogCatalog/bc_labels.txt --input data/blogCatalog/bc_adjlist.txt --graph-format adjlist --output vec_all.txt --q 0.25 --p 0.25 is running successfully.

Let me know if you want me to raise a PR to add the environment.yml.

Bznkxs commented 4 years ago

Hi sming! Thanks for your question and you are always welcome to raise a PR.