
If I now run pip install -I package=2.0.0, the old datetime.py file will not be removed, so any calls to import datetime will import the wrong module. Now lets say I run pip install package=3.0.0, but then later realize that I actually wanted version 2.0.0. Now, in this points to the standard library datetime module, but in they added a local datetime.py as a replacement for the standard library version (for whatever reason). In one of packages files, they use import datetime.

This can cause weird behavior if those files share names with other installed modules.įor example, let's say there's a package named package. This means that any files that should be deleted between versions will instead be left in place. I will not uninstall the existing package before proceeding it will just install it on top of the old one. I recently ran into an issue when using pip's -I flag that I wanted to document somewhere:

So to properly install the driver, you can follow these steps: pip uninstall MySQL_python The download link 404s and the fallback URL links are re-directing infinitely due to 's recent upgrade and PyPI's stale URL. If you look at pip's installation log, or if you do a pip install -Iv MySQL_python=1.2.2 you'll find that the PyPI URL link does not work for MySQL_python v1.2.2. However, you'll soon find out that this doesn't work. Since you already have an installed version, you should either uninstall the current existing driver or use pip install -I MySQL_python=1.2.2 Ivvv).įor more information, see pip install -helpįirst, I see two issues with what you're trying to do.

You can combine for even more verbosity (i.e.

