Jarrid
Jarrid

Reputation: 1

When I try to install PySimpleGUI (4.53.0) in jupyter notebook using Python 3.8 the error "no module named 'PySimpleGUI' is returned

I have already used pip install pysimplegui, using pip list shows that it is installed in Terminal (I use a mac). I also made sure it was the most recent version of pysimplegui.

I'm newer to coding some I'm not sure what other information to put here. Any advice would be enormously helpful. I am using Jupyter Notebook through Anaconda.

I should add that before this I tried doing the same thing with easygui and had the exact same error.

Upvotes: 0

Views: 1486

Answers (3)

Bill Zhang
Bill Zhang

Reputation: 1

copy from PySimpleGUI

https://pysimplegui.readthedocs.io/en/latest/

Warning - tkinter + Python 3.7.3 and later, including 3.8 has problems The version of tkinter that is being supplied with the 3.7.3 and later versions of Python is known to have a problem with table colors. Basically, they don't work. As a result, if you want to use the plain PySimpleGUI running on tkinter, you should be using 3.7.2 or less. 3.6 is the version PySimpleGUI has chosen as the recommended version for most users.

Upvotes: 0

frippe
frippe

Reputation: 1393

Mixing pip install and conda install is not to recommend, although sometimes unavoidable. What has happened in your case is not related to this conflict, though. In this case, the wrong pip was invoked when installing the package, so it was installed for a different python interpreter than the one you're using to run the notebook. You can have several python versions installed globally, both python(2) and python3. Furthermore, you may have even more versions of python in virtual environments, so you need to pay attention to which version you want to install a package for.

In case you don't have any specific reason not to, you'll save yourself some future headaches by using the conda package management system over pip to avoid those situations where they don't play nice with each other and you end up with a broken or unpredictable package setup.

Note that I'm not saying conda is better than pip in any way, I'm only proposing going with conda since you're using the Anaconda environment and its preinstalled packages already.

Upvotes: 0

HostedPosted
HostedPosted

Reputation: 88

In the anaconda terminal use python -m pip install PySimpleGUI so you install it in the python being used.

Upvotes: 0

Related Questions