title: No module named astropy
body: <p>I've install the module Astropy for Python in mac using:</p>
  
  <pre><code>pip install --user astropy
  </code></pre>
  
  <p>It works when I installed but when I execute this code I have an error.</p>
  
  <pre><code>import astropy
  astropy.test()
  </code></pre>
  
  <p>This is the error</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/JanPolRoig/Documents/astropytest.py", line 1, in &lt;module&gt;
    import astropy
  ModuleNotFoundError: No module named 'astropy'
  </code></pre>
  
  <p>Why is this happening?</p>