I have managed to develop a game using the simplegui module and am able to run it on CodeSkulptor, but when I try running it on IDLE, it displays that the module simplegui is not found. I'm not really getting how to download the module on my system and am unable to find any solution on Google. Is there any way I can get simplegui, or is it an outdated module(I'm finding many websites explaining how to download PySimpleGUI and Tkinter but can't find simplegui)?
Thanks for any help
Check this question:
How to integrate SimpleGUI with Python 2.7 and 3.0 shell
You can use:
import simpleguitk as simplegui
Related
I'm a complete beginner in Python programming. I have trouble installing/importing the module 'requests' on python. When I use my command terminal to install requests, I get a message that requests is already installed. However, when I try to import requests into the file I'm working on, python tells me there is no such module installed.
Sorry to bother you with this silly and probably easy question, thanks in advance!
If you use PyCharm (which is a great choice in my opinion), go to the tab Run and select Edit Configuration and in the window that just opened make sure the your Python interpreter is the one you used when you pip installed the package you asked about.
You can check your Python version or just see in PyCharm if the requests is actually installed by going to the tab File, select Settings, click on Project: name_of_your_project and finally check in Project Interpreter that the package is installed.
I am trying to use the Python module pyowm with Kivy and am having problems getting the import statement to work. I am on Windows 8.1 and downloaded pyowm using PIP. When I try and use "import pyowm" and then send the file to Kivy.bat it says "No module named pyowm" but when I just run a program that uses only pyowm from command line it works.
Any help would be greatly appreciated.
Cheers
The kivy portable package includes its own python, but it sounds like you have installed pyowm into some other python installation.
I haven't used the windows package, but I think somewhere in it there should be a way to run its internal pip. If nobody responds here, someone on the kivy mailing list or irc probably knows.
I'm working with Python 2.7.6, Windows 8.1, in PyCharm 3.1.3.
trying to run something that already worked and get the error:
File "C:\something\sources\ParamsWin.py", line 6, in
import gtk ImportError: No module named gtk
Tried to download GTK through project settings, and got:
ImportError: No module named xml.etree.ElementTree
Tried to import element tree package and got the same error.
I've been googling quite a bit and there seems to be a problem with python and this element.
anyone, ideas?
TIA
You say you tried to download GTK?
I've had problems in the past (and the xml.etree... thing does look familiar) when I just installed GTK on its own. The best way of installing gtk in a Windows platform, in my humble opinion, is to use one of the the all-in-one downloaders from here: http://ftp.acc.umu.se/pub/GNOME/binaries/win32/pygtk/2.24/.
Cheers,
Simon
I'm trying to compile a Python project (using Python 2.7 on Windows XP) into an EXE using PyInstaller with the default options. When I try to run the EXE, I get the message:
PyInstaller - ImportError: No module named win32api
I added the win32api path to the windows PATH environment variable (I do have Python Win32 Extensions installed) but it's not working. I'm pretty new to this and a little overwhelmed by all the options etc, and I really have no idea where to start (or what information would be useful to solving this problem.) I assume this is some little thing that I'm missing, but I haven't found anyone having precisely this problem online and any help would be greatly appreciated.
Ok, it looks like "import os" in one of my modules was causing this issue. I had no luck getting it to successfully use the win32api module, but since this was only being used to set the program name, I just commented this out and this particular issue is resolved. Thanks Luke for your help!
Im my Python file, I have imported the win32gui module like this:
import win32gui
I have also downloaded win32gui but don't know how to make my script run. How can I run my Python script which imports win32gui? When I run it, I get:
ImportError: No module named win32gui
Sorry for the newbie question but I'm trying to learn Python so don't know much about it.
When on a windows platform, I usually go for the executables. They should work all the time. Try perhaps one of the files listed here:
http://sourceforge.net/projects/pywin32/files/pywin32/Build216/
It's the most recent build. Choose the one appropriate to your Python's version.
this is a module from Marc Hammond's well-known pywin32 extension module, you can also get the source and compile it quite easily (I found I needed to do this because I needed a 64 bit build and couldn't find one at the time). The mercurial address to get it is:
http://pywin32.hg.sourceforge.net:8000/hgroot/pywin32/pywin32
there are visual studio project files in the .\pywin32\win32 directory...