![]() |
PySimpleGUI not importing - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: PySimpleGUI not importing (/thread-36823.html) |
PySimpleGUI not importing - garynewport - Apr-03-2022 I am using a Mac with PyCharm as my IDE. I have Python 3.10.2 installed.If I do python -m pip list I get told that...Package Version ----------- ------- pip 22.0.4 PySimpleGUI 4.57.0 setuptools 58.1.0 tk 0.1.0Yet, when I open PyCharm and run a simple interface... import PySimpleGUI as sg filename = sg.popup_get_file('Enter the file you wish to process') sg.popup('You entered', filename)I get an error... If I try to check that PySimpleGUI is installed by running an upgrade using python3 -m pip install --upgrade --no-cache-dir PySimpleGUI I get told that everything is successful: Requirement already satisfied: PySimpleGUI in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (4.57.0) So, all is installed and working yet will not be recognised within PyCharm. Is this a path issue? Or am I missing something else? RE: PySimpleGUI not importing - snippsat - Apr-03-2022 garynewport Wrote:stelcorGUI/ venv means that you run from a virtual environment.Look at Configure a Python interpreter. If you want to use Python 3.10.2 on OS,you most specify the path to the Python executable on your system.Virtual environment work like new Python installation(isolated),so if use venv (virtual environment) all need to installed to it,it will not find or use dependencies OS(as show in your pip list ).
RE: PySimpleGUI not importing - sastonrobert - Apr-03-2022 please install the packages in a virtual environment also. RE: PySimpleGUI not importing - garynewport - Oct-19-2022 Thank you; all solved. |