thunlp/OpenNE

Cannot install on OS X

sming opened this issue · 3 comments

sming commented

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

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

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.

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