I installed PyDev in Eclipse to run Python programs, but I’m facing trouble importing simplegui
. It is showing me this error:
import simplegui
ImportError
: No module namedsimplegui
My installed PyDev version is 2.7.1.
I installed PyDev in Eclipse to run Python programs, but I’m facing trouble importing simplegui
. It is showing me this error:
import simplegui
ImportError
: No module namedsimplegui
My installed PyDev version is 2.7.1.
You can use SimpleGUICS2Pygame. Just change import simplegui by import SimpleGUICS2Pygame.simpleguics2pygame as simplegui in your CodeSkulptor program and run it in standard Python
Did you learn Python using CodeSkulptor? simplegui is a custom module for CodeSkulptor, meaning that it is only available in CodeSkulptor.
More information here.
I am using a Mac, when I installed simplegui
off of the Python website, I had to import it as:
import simpleguitk
I also downloaded it through terminal with the command:
sudo pip install SimpleGUITk
Simple, download simplegui.zip form http://florian-berger.de/en/software/simplegui.
unzip simplegui-x.x.x.zip
cd simplegui-x.x.x
python setup.py install
Replace x.x.x
with version number. You might want to run the last step with sudo rights.