Aug-13-2019, 11:07 AM
Tried to install the PySimpleGui and failed miserably.
First I ran the following code that I copied from the Cookbook
First I ran the following code that I copied from the Cookbook
import PySimpleGUI as sg layout = [[sg.Text('My one-shot window.')], [sg.InputText()], [sg.Submit(), sg.Cancel()]] window = sg.Window('Window Title', layout) event, values = window.Read() window.Close() text_input = values[0] print(text_input)Running this gave me the following error message
Error:>>>
= RESTART: D:/EDEM626/Assignment 2/Databases/Python Version/Create Tables.py =
Traceback (most recent call last):
File "D:/EDEM626/Assignment 2/Databases/Python Version/Create Tables.py", line 1, in <module>
import PySimpleGUI as sg
ImportError: No module named 'PySimpleGUI'
After this I tried to instal PySimpleGui. The Cookbook gave me the code but no instructions as to where to put it. I tried it on the command line as follows>>> pip install --upgrade PySimpleGUIThis gave me the following errormessage
Error:SyntaxError: invalid syntax
Any help would be appreciated