title: when i write "import pygame" in pycharm it says: no module named pygame (mac os)
body: <p>At first  the version of pygame i downloaded was: <code>pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3</code></p>
  
  <p>then i got the error message when i run the program :</p>
  
  <pre><code>The function `CGSFlushWindow' is obsolete and will be removed in an upcoming update.
  </code></pre>
  
  <p>so i adopt the suggestion from <a href="https://stackoverflow.com/questions/14103699/mac-os-pygame-using-a-deprecated-function-cgsflushwindow">Mac OS Pygame using a deprecated function CGSFlushWindow</a>,</p>
  
  <p>then i downloaded the new version which is <a href="http://pygame.org/ftp/pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip" rel="nofollow noreferrer">here</a>.</p>
  
  <p>but now, a new following  error comes:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/Crayon_277/Develop/Project/Pygame/my_pygame/my_pygame.py", line 3, in     &lt;module&gt;
      import pygame
  ImportError: No module named pygame
  </code></pre>
  
  <p>i notice that the pygame package is in this directory (A) : <code>/Library/Python/2.7/site-packages</code>
  not this (B) : <code>/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages</code></p>
  
  <p>so i try to copy it from A to B, but it doesn't work.</p>
  
  <p>someone reminds me that i should see if <code>sys.path</code> contains pygame.
  and the answer is YES when i check it out.</p>
  
  <p>so what i should do now? Can someone help me out?</p>