pip install -Iv(i.e.
pip install -Iv MySQL_python==1.2.2)
What these options mean:
--ignore-installedwhich will ignore the installed packages, overwriting them.
-vis for verbose. You can combine for even more verbosity (i.e.
-vv) up to 3 times (e.g.
For more information, see
pip install --help
First, I see two issues with what you’re trying to do. 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
However, you’ll soon find out that this doesn’t work. 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. You can verify this here: http://pypi.python.org/pypi/MySQL-python/1.2.2
The download link 404s and the fallback URL links are re-directing infinitely due to sourceforge.net’s recent upgrade and PyPI’s stale URL.
So to properly install the driver, you can follow these steps:
pip uninstall MySQL_python pip install -Iv http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.tar.gz/download