我正在按照以下指示进行操作:http : //www.pygame.org/wiki/CompileUbuntu?parent=Compilation
这些说明提供了在Ubuntu上为Python 3安装Pygame的步骤。
在达到这python3 setup.py build
一步之前,我对此没有任何问题。这是命令输出:
Traceback (most recent call last):
File "setup.py", line 109, in <module>
from setuptools import setup, find_packages
ImportError: No module named 'setuptools'
如果我只是import pygame
在Python 2和Python 3中都运行,它将报告没有名为pygame的模块。
有什么特别的事情需要做吗?谢谢!
编辑:遵循@docmarvin的指导并安装了模块setuptools。还是一样的错误
sudo apt install python3-setuptools
^ separate from Python 2 setuptools.
根据这个答案。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句