run pygame with phycharm
<p>I try to run pygame in Pycharm. The editor show the library. But if I run the program I get an error that it can't find the module: pygame.</p>

<p>I am running python 3.5</p>

<p>I added a picutre:
<a href="http://i.stack.imgur.com/brTCS.png" rel="nofollow"><img src="http://i.stack.imgur.com/brTCS.png" alt="enter image description here"></a></p>

<p>I try it like this:</p>

<p><a href="http://i.stack.imgur.com/466Yc.png" rel="nofollow"><img src="http://i.stack.imgur.com/466Yc.png" alt="enter image description here"></a></p>

<p>Thank you</p>

<p>oke, I have done that.See:</p>

<p><a href="http://i.stack.imgur.com/w0KjO.png" rel="nofollow"><img src="http://i.stack.imgur.com/w0KjO.png" alt="enter image description here"></a></p>

<p>So I run again the program:</p>

<p>see image:
<a href="http://i.stack.imgur.com/JV1Nx.png" rel="nofollow"><img src="http://i.stack.imgur.com/JV1Nx.png" alt="enter image description here"></a></p>

<p>ok. I am using python: Python 3.4.4.</p>

<p>but if I do this:</p>

<p>pip3 install pygame. I get this warning:</p>

<p><a href="http://i.stack.imgur.com/rS2j3.png" rel="nofollow"><img src="http://i.stack.imgur.com/rS2j3.png" alt="enter image description here"></a></p>

<p>see image:
<a href="http://i.stack.imgur.com/vAUmi.png" rel="nofollow"><img src="http://i.stack.imgur.com/vAUmi.png" alt="enter image description here"></a></p>

<ol>
<li><p>You do not have the PyGame module and even PyCharm suggests it for you.</p></li>
<li><p>You do not run pip inside the python IDE. In order to do install a module with pip you have to open the command line and directly run</p>

<p><code>Pip install PyGame</code></p></li>
</ol>

<p>Or</p>

<pre><code>Python -m pip install pygame
</code></pre>

<ol start="3">
<li><p>Based on previous answer on a question like yours: Are you sure you have got pygame for Python 3.5? The version for 3.5 wont work and produce this error msg, because the pyd file wont find the python 3.5 dll.</p>

<p>EDIT: since you are installing for python2.7 USE PIP3 to install</p>

<p><code>pip3 install pygame</code></p></li>
<li><p>Since pygame's pip page is rarely downloaded I suggest you download the module from BitBucket avaivable <a href="https://bitbucket.org/pygame/pygame/downloads" rel="nofollow">here</a>.</p></li>
</ol>

python python-3.x