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>

<p>then install <code>pygame</code>:</p>

<pre><code>pip install pygame
</code></pre>

<p>or:</p>

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

<p>or from code:</p>

<pre><code>import pip
pip.main(['install', 'pygame'])
</code></pre>

python python-3.x