title: Same code not working in PyCharm but working outside PyCharm
body: <p>I am trying to run a google ortools example in PyCharm and got the following errors:</p>
  
  <pre><code>/Users/edamame/project/ortools/simple_program.py
  Traceback (most recent call last):
    File "/Users/edamame/project/ortools/simple_program.py", line 3, in &lt;module&gt;
      from ortools.linear_solver import pywraplp
  ModuleNotFoundError: No module named 'ortools.linear_solver'
  
  Process finished with exit code 1
  </code></pre>
  
  <p>However, if I run the same code outside the PyCharm (under the corresponding project venv), it works fine:</p>
  
  <pre><code>(venv) edamame$ pwd
  /Users/edamame/project/ortools/
  (venv) edamame$ python simple_program.py 
  Solution:
  Objective value =  4.0
  x =  1.0
  y =  1.0
  </code></pre>
  
  <p>I then tried to print below in both cases:</p>
  
  <pre><code>import sys
  print('\n'.join(sys.path))
  </code></pre>
  
  <p>The outputs:</p>
  
  <p>In PyCharm:</p>
  
  <pre><code>/Users/edamame/project/venv/bin/python
  /Users/edamame/project/ortools/so_example.py
  /Users/edamame/project/ortools
  /Users/edamame/project
  /Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
  /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
  /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
  /Users/edamame/project/venv/lib/python3.6/site-packages
  /Users/edamame/project/venv/lib/python3.6/site-packages/setuptools-39.1.0-py3.6.egg
  /Users/edamame/project/venv/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg
  </code></pre>
  
  <p>Outside PyCharm:</p>
  
  <pre><code>(venv) edamame$ python so_example.py 
  /Users/edamame/project/ortools
  /Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
  /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
  /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
  /Users/edamame/project/venv/lib/python3.6/site-packages
  /Users/edamame/project/venv/lib/python3.6/site-packages/setuptools-39.1.0-py3.6.egg
  /Users/edamame/project/venv/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg
  </code></pre>
  
  <p>They seem to be the same though ... not sure what could be the problem ...</p>
  
  <p>How do I make the same code working in PyCharm?</p>