I tried many times to install pygame for Python 3.5, but never succeeded. For example, I tried this but got the following error:
$ python3
>>> import pygame
enter code hTraceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pygame'
>>>
Everything looks fine while building and installing, but I still don't see any changes. Did I forgot something? Is there something wrong?
Just do:
$ sudo pip3 install pygame
The problem was that, at the time, pygame wasn't packaged yet. This is no longer an issue.
I had the same problem on debian 8 and I upgraded pip:
sudo python3 -m pip install --upgrade pip
I have installed pygame using the code from Pygame website :
python3 -m pip install pygame --user
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.