title: Python cannot import, unknown location
body: <p>I've three file in pycharm project like,</p>
  
  <pre><code>project
  ├── main.py 
  ├── parser.py
  └── test.py
  </code></pre>
  
  <p>Both parser.py and test.py have the same code.</p>
  
  <pre><code>def test():
      print('test')
  </code></pre>
  
  <p>But I can only execute main.py with below and it outputs <code>test</code></p>
  
  <pre><code>from test import test
  
  test()
  </code></pre>
  
  <p>While when I execute main.py with below,</p>
  
  <pre><code>from parser import test
  
  test()
  </code></pre>
  
  <p>it output's </p>
  
  <blockquote>
  <pre><code>Traceback (most recent call last):
    File "C:/Users/lf/Desktop/jye_parser/main.py", line 1, in &lt;module&gt;
      from parser import test
  ImportError: cannot import name 'test' from 'parser' (unknown location)
  
  Process finished with exit code 1
  </code></pre>
  </blockquote>
  
  <p>Here is the project architecture. I can use <code>Ctrl</code> + <code>Left Click</code> to jump to the <code>test</code> function in main.py in both case.</p>
  
  <p><a href="https://i.stack.imgur.com/cldl7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cldl7.png" alt="enter image description here"></a></p>