question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'node2vec'

See original GitHub issue
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-ab061214f9c6> in <module>
      7 import torch.optim as optim
      8 from deeprobust.graph.utils import accuracy
----> 9 from deeprobust.graph.defense.pgd import PGD, prox_operators
     10 import warnings
     11 

~/DeepRobust/deeprobust/graph/defense/__init__.py in <module>
      4 from .prognn import ProGNN
      5 from .simpgcn import SimPGCN
----> 6 from .node_embedding import Node2Vec, DeepWalk
      7 import warnings
      8 try:

~/DeepRobust/deeprobust/graph/defense/node_embedding.py in <module>
     16 from sklearn.preprocessing import normalize
     17 from sklearn.metrics import f1_score, roc_auc_score, average_precision_score, accuracy_score
---> 18 from node2vec import Node2Vec as N2V
     19 
     20 class BaseEmbedding:

ModuleNotFoundError: No module named 'node2vec'

Hi, is there a missing file node2vec?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EdisonLeeeeecommented, Mar 19, 2021
0reactions
ChandlerBangcommented, Mar 19, 2021

Thank you so much!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'node2vec'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'node2vec' How to remove the ModuleNot.
Read more >
Node2vec and networkx - python - Stack Overflow
I'm the author of this library. If you are using Windows, parallel execution won't work because joblib and Windows issues. Run the same...
Read more >
node2vec - PyPI
Implementation of the node2vec algorithm.
Read more >
Node2Vec - :: Anaconda.org
1. The node2vec algorithm learns continuous representations for nodes in any (un)directed, (un)weighted graph.
Read more >
Snap.py - SNAP for Python
Snap.py is self-contained, it does not require any additional packages for its basic functionality. ... Snap.py can be installed via the pip module....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found