title: AttributeError: module 'networkx' has no attribute 'Graph' --duplicate
body: <p>I know it is a duplicate, but <a href="https://stackoverflow.com/questions/42084985/attributeerror-module-networkx-has-no-attribute-graph">this</a> hasn't solved my issue nor other guide online has.<br>
  I have installed the Anaconda distribution and it is the only Python environment I have on this computer. I always used Jupyter as Python "engine" and things worked flawlessly up until now, where I have switched to Sublime editor + CMD. I have tried to reinstall it via <code>pip install -U networkx</code> and via downloading from Git and then <code>pip install .</code> but none of them worked.   </p>
  
  <pre><code>import networkx as nx
  
  gr= nx.Graph()
  
  
  
  Traceback (most recent call last):
    File "networkx.py", line 1, in &lt;module&gt;
      import networkx as nx
    File "C:\Users\Utente\nx\networkx.py", line 3, in &lt;module&gt;
      gr = nx.Graph()
  AttributeError: module 'networkx' has no attribute 'Graph'
  </code></pre>
  
  <p>For whatever reason, using Jupyter QtConsole works, but I cannot use that to write and debug code</p>