I"m trying to install version 1.2.2 of the MySQL_python adaptor, using a fresh virtualenv created with the
--no-site-packages option. The current version shown in PyPi is 1.2.3. Is there a way to install the older version? I found an article stating that this should do it:
pip install MySQL_python==1.2.2
When installed, however, it still shows
MySQL_python-1.2.3-py2.6.egg-info in the site packages. Is this a problem specific to this package, or am I doing something wrong?
pip install -Iv(i.e.
pip install -Iv MySQL_python==1.2.2)
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
You can even use a version range with
pip install command. Something like this:
pip install "stevedore>=1.3.0,<1.4.0"
And if the package is already installed and you want to downgrade it add
--force-reinstall like this:
pip install "stevedore>=1.3.0,<1.4.0" --force-reinstall
One way, as suggested in this post, is to mention version in
pip install -Iv MySQL_python==1.2.2
== and mention the version number to install only that version.
-I, --ignore-installed ignores already installed packages.
To install a specific python package version whether it is the first time, an upgrade or a downgrade use:
pip install --force-reinstall MySQL_python==1.2.4
MySQL_python version 1.2.2 is not available so I used a different version. To view all available package versions from an index exclude the version:
pip install MySQL_python==
In the summer of 2008, after three decades of building software in corporate data centers, I walked away from corporate America to take a stab at building a technology company from the ground up based...
Big data is, admittedly, an overhyped buzzword used by software and hardware companies to boost their sales. Behind the hype, however, there is a real and extremely important technology trend with imp...
R for Everyone: Advanced Analytics and Graphics. ...
The genesis of this book began in 2012. Hadoop was being explored in mainstream organizations, and we believed that information architecture was about to be transformed. For many years, business intel...