title: "No module named math" (and others) error with Docker interpreter, but execution and breakpoints work
body: <p>I configured Docker interpreter exactly by following PyCharm tutorial: <a href="https://www.jetbrains.com/help/pycharm/using-docker-as-a-remote-interpreter-1.html" rel="nofollow noreferrer">https://www.jetbrains.com/help/pycharm/using-docker-as-a-remote-interpreter-1.html</a>, then wait for indexing and skeleton fetching to finish.</p>
  
  <p>I tried executing the file, and even setting a breakpoint. All this worked.</p>
  
  <p>However, the <code>import math</code> line shows error <code>No module named math</code>. Autocomplete does not work. Even more strange is that <em>some</em> built-in libraries import, but some do not.</p>
  
  <p>Built-in libraries which do <strong>not</strong> import: <code>math</code>, <code>json</code>, <code>urllib</code>, <code>io</code>, <code>csv</code>, <code>numbers</code>, <code>curses</code>, <code>logging</code>.</p>
  
  <p>Built-in libraries which <strong>do</strong> import: <code>os</code>, <code>re</code>, <code>time</code>, <code>argparse</code>.</p>
  
  <p><em>Note: the import test was not exhaustive</em>. Other built-in libraries may or may not import.</p>
  
  <p>I'm using PyCharm Professional 2018.1. Version 2017.3 was also tested, and same error appears (tested just <code>import math</code>, though). If I use my local Python interpreter, imports and autocomplete work just fine.</p>
  
  <p>I'm using <code>python:latest</code> as the Remote Docker interpreter, with <code>python</code> as the interpreter path. At this time, this works out to <code>Python 3.6.5</code>. If I start the interpreter with <code>docker run -it python:latest</code>, and then try to <code>import math</code>, everything works:</p>
  
  <pre><code>$ docker run -it python:latest
  Python 3.6.5 (default, Mar 31 2018, 01:15:58)
  [GCC 4.9.2] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import math
  &gt;&gt;&gt; dir(math)
  ['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'ceil', 'copysign', 'cos', 'cosh', 'degrees', 'e', 'erf', 'erfc', 'exp', 'expm1', 'fabs', 'factorial', 'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'gcd', 'hypot', 'inf', 'isclose', 'isfinite', 'isinf', 'isnan', 'ldexp', 'lgamma', 'log', 'log10', 'log1p', 'log2', 'modf', 'nan', 'pi', 'pow', 'radians', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'tau', 'trunc']
  </code></pre>
  
  <p>I have <a href="https://youtrack.jetbrains.com/issue/PY-29585" rel="nofollow noreferrer">filed a bug</a> with JetBrains, but since this is basic functionality for the feature, maybe I'm doing something wrong.</p>