swampy

ImportError: No module named Tkinter when importing swampy.TurtleWorld

百般思念 提交于 2019-12-02 16:02:32
问题 I am using Python 3.4 and following along the book "Think Python: how to think like a computer scientist". I actually figured out this issue a week ago, but saved over the original code when it failed to run like it did last week. Right now I have: import tkinter from swampy.TurtleWorld import * which yields: ImportError: No module named 'Tkinter' When I had the code working last week, I loosely recall that in the 'import tkinter' line, there was a portion at the end that looked like this:

Installing the Swampy Python module on Windows

大城市里の小女人 提交于 2019-11-28 02:04:29
I am trying to install the Swampy module on Python, but there is a lot that is unclear in the instructions given on the site and the documentation. I have put the Swampy folder into the site-packages folder of Python 2.7.1, but I don't know how to make the .pth file that will get it installed so that the module can be imported. Can anyone give me instructions on how to make one of these magical .pth files? After you unzip your swampy-2.0 folder in the site-packages directory, you only have to create, also in site-packages, a text file called misite.pth (the only important thing here is the

Installing the Swampy Python module on Windows

半城伤御伤魂 提交于 2019-11-26 23:39:46
问题 I am trying to install the Swampy module on Python, but there is a lot that is unclear in the instructions given on the site and the documentation. I have put the Swampy folder into the site-packages folder of Python 2.7.1, but I don't know how to make the .pth file that will get it installed so that the module can be imported. Can anyone give me instructions on how to make one of these magical .pth files? 回答1: After you unzip your swampy-2.0 folder in the site-packages directory, you only