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

cannot import name 'Node2Vec' from 'node2vec' #21

Closed
chanlevan opened this issue Jul 2, 2019 · 6 comments
Closed

cannot import name 'Node2Vec' from 'node2vec' #21

chanlevan opened this issue Jul 2, 2019 · 6 comments

Comments

@chanlevan
Copy link

chanlevan commented Jul 2, 2019

Hi,

I installnode2vec using pip install. However when I start the sample scripts from your example, it shows error:
"from node2vec import Node2Vec
ImportError: cannot import name 'Node2Vec' from 'node2vec'"

Do you know why?

My python version: 3.7.1
OS: tried both on Mac and Red Hat 7.6

Regards,
Chan.

@eliorc
Copy link
Owner

eliorc commented Jul 11, 2019

I cannot replicate this issue - are you sure you installed it on the interpreter that is running this command?

@chanlevan
Copy link
Author

I managed to build directly from the source code and it works now. So never mind.

@trbuser
Copy link

trbuser commented Oct 22, 2019

Hello,
I am facing the same issu, but i can't fix it?
can someone help me, please?

here is the error that i have:

from node2vec import Node2Vec
ImportError: cannot import name Node2Vec
My python version: 3.6
OS: ubuntu 18.04

@chanlevan
Copy link
Author

Hello,
I am facing the same issu, but i can't fix it?
can someone help me, please?

here is the error that i have:

from node2vec import Node2Vec
ImportError: cannot import name Node2Vec
My python version: 3.6
OS: ubuntu 18.04

Hi,

Last time I resolved it by cloning the repository and navigating to the code folder and put:

pip install .

It worked after that. Hope this help.

@trbuser
Copy link

trbuser commented Oct 22, 2019

Hello,
I am facing the same issu, but i can't fix it?
can someone help me, please?
here is the error that i have:
from node2vec import Node2Vec
ImportError: cannot import name Node2Vec
My python version: 3.6
OS: ubuntu 18.04

Hi,

Last time I resolved it by cloning the repository and navigating to the code folder and put:

pip install .

It worked after that. Hope this help.

Thanks for your response, i tried this, but it seems like it still doesn't work :/

@trbuser
Copy link

trbuser commented Oct 22, 2019

Hi!! i fixed it, thank you @chanlevan . I managed the path on /home/user/python3.9/lib.

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

3 participants