Import PySimpleGUI in Visual Code

I'm having an error when I use PySimpleGUI

         import PySimpleGUI as 
sg ModuleNotFoundError: No module named 'PySimpleGUI

PySimpleGUI is properly installed on the computer so much so that I use it in Spyder. I can also use the random model.

insert the description of the image here

PS: I don't like Spyder very much and my computer crashes when I simultaneously open the two

Author: kalango1, 2020-08-04

1 answers

Man, I believe you have to install it before using in this IDE. Remember that this code I'm going to pass will only work if you have Python installed on your computer.

Open PowerShell,

pip install pysimplegui
ou
pip3 install pysimplegui

Unlike googlecolab or jupyter that you use online, in IDE's that run on your machine like vscode, Spyder etc.

 -1
Author: gabriel pereira, 2020-08-09 02:50:20