0
我正在研究“ThinkPython”,并在第4章中要求我们下载swampy(学习模块)。好吧,我跟着instructions here和我安装了它,但是当我尝试使用IDLE(Python的GUI)导入:import swampy.TurtleWorld
,我得到如下:导入Swampy(Python学习模块)
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import swampy.TurtleWorld
ImportError: No module named 'swampy'
我该如何解决这个问题?
您确定已经为您使用的Python版本安装了它吗?您可能需要执行'easy-install-3'或类似的操作,而不是'easy-install'。你在哪个系统上运行? – filmor
@filmor是的,我检查了它。 –
Nada - 我会穿过'swampy'标签,看一些以前的问题和答案 - 这似乎是一个经常问的问题... –