Ask coding questions

← Back to all posts
How can I force a clean pip install of a package? (Solved)
h
PySimpleGUI (17)

My program keeps crashing because it's running the wrong version of the PySimpleGUIWeb package. Instead of loading and running 0.6.0 it's running the older 0.5.0 version.

I can't seem to force the upgrade even with the requirements file set to 0.6.0.

Here's the output from the startup of my script:
Python 3.6.1 (default, Dec 2015, 13:05:11)
[GCC 4.8.2] on linux
Collecting PySimpleGUIWeb==0.6.0 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/b9/1b/32ac8a0e21963a3ed3b07aa837bd38cbb024effecc7541a08ee5c910bba3/PySimpleGUIWeb-0.6.0-py3-none-any.whl
Collecting remi (from PySimpleGUIWeb==0.6.0->-r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/db/18/8c26a975e1d3c484d11098ce71e41041d201311fc5991dc11b17e5944f5b/remi-2018.12-py3-none-any.whl
Installing collected packages: remi, PySimpleGUIWeb
Successfully installed PySimpleGUIWeb-0.6.0 remi-2018.12
Target directory /home/runner/.site-packages/remi-2018.12.dist-info already exists. Specify--upgrade to force replacement.
Target directory /home/runner/.site-packages/PySimpleGUIWeb already exists. Specify --upgrade to force replacement.
Target directory /home/runner/.site-packages/remi already exists. Specify --upgrade to force replacement.
Target directory /home/runner/.site-packages/editor already exists. Specify --upgrade to force replacement.
Target directory /home/runner/.site-packages/PySimpleGUIWeb-0.6.0.dist-info already exists.Specify --upgrade to force replacement.
You are using pip version 9.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Here is the repl location:
https://repl.it/@PySimpleGUI/PySimpleGUIWeb-Demos

It was working great earlier but now it seems stuck on this version problem.

Comments
hotnewtop
PySimpleGUI (17)

F1 didn't bring up anything for me but Chrome's help.

I just figured out how to run pip by calling os.system()

I was able to call this using the Python shell prompt in my repl.it window:

os.system('pip uninstall PySimpleGUIWeb')

Thanks to everyone that replied so QUICKLY!

PaoloAmoroso (192)

@PySimpleGUI on Chrome OS there's an alternate keybinding to F1 for opening the REPL editor's command palette, i.e. Shift+Ctrl+P.

abc3354 (229)

Hi !
First, you can try to reload the page.
If it doesn't work you can do F1>Open shell and play with pip directly
I am sorry I do not really know how to use pip

PySimpleGUI (17)

The way I can tell it's 0.5.0 that's loaded is that it crashes showing this line of code in the traceback:

remi.start(self.MyApp, title=self.Title ,debug=False, address='0.0.0.0', port=Window.port_number, start_browser=True, update_interval=.00001, userdata=(self,))

In 0.6.0 the parameter port=0

AllAwesome497 (401)

You can manually download it. Although you will have to find the files and a tutorial,
I don’t personally do that though.