John Doe John Doe - 3 months ago 24
Python Question

Pygame for Python 3 - "Setup.py build" command error

I am following these directions: http://www.pygame.org/wiki/CompileUbuntu?parent=Compilation

The instructions give the steps in installing Pygame for Python 3 on Ubuntu.

I am having no problems with it until i reach the

python3 setup.py build
step. This is what the command outputs:

Traceback (most recent call last):
File "setup.py", line 109, in <module>
from setuptools import setup, find_packages
ImportError: No module named 'setuptools'


If i simply run
import pygame
in both Python 2 and Python 3, it reports that there is no module called pygame.

Is there anything special that is needed to be done? Thanks!

EDIT: Followed @docmarvin 's directions and installed the module setuptools. Still the same error

cxw cxw
Answer
sudo apt install python3-setuptools
                       ^ separate from Python 2 setuptools.

Per this answer.

Comments