Skip to content
Fix Code Error

Installing specific package versions with pip

March 13, 2021 by Code Error
Posted By: Anonymous

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?

Solution

TL;DR:

  • 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
Answered By: Anonymous

Related Articles

  • Can't install via pip because of egg_info error
  • Form field border-radius is not working only on the…
  • Trouble with boxes appearing/hiding based on selection
  • ImportError: No module named sqlalchemy
  • import error: 'No module named' *does* exist
  • pip cannot install anything
  • "OSError: [Errno 1] Operation not permitted" when…
  • Generating a drop down list of timezones with PHP
  • Error 'Map', but got one of type 'Null' flutter web…
  • What is the difference between venv, pyvenv, pyenv,…
  • Ubuntu apt-get unable to fetch packages
  • Where is Python's sys.path initialized from?
  • Is it possible to install another version of Python…
  • Event system in Python
  • How to update Python?
  • Python How to print list to list
  • Rails wrong number of arguments error when…
  • How to install psycopg2 with "pip" on Python?
  • error LNK2005: ✘✘✘ already defined in…
  • How do you use subprocess.check_output() in Python?
  • How to fix error "ERROR: Command errored out with…
  • Python File Error: unpack requires a buffer of 16 bytes
  • Why use pip over easy_install?
  • Adding Google Translate to a web site
  • no module named zlib
  • Is it acceptable and safe to run pip install under sudo?
  • How to find pg_config path
  • Error using core-scaffold from polymer JS in the…
  • How should I deal with "package '✘✘✘' is not…
  • Spring Boot - Cannot determine embedded database…
  • Homebrew install specific version of formula?
  • How to avoid "module not found" error while calling…
  • How to show title in hover - css / jquery
  • How can I find the product GUID of an installed MSI setup?
  • How can I connect to MySQL in Python 3 on Windows?
  • How to install pip with Python 3?
  • Upgrade python in a virtualenv
  • Error installing PyPI xmlsec==1.3.3 Python2
  • How do I install Java on Mac OSX allowing version switching?
  • Why am I getting a "401 Unauthorized" error in Maven?
  • Dealing with multiple Python versions and PIP?
  • Cannot import keras after installation
  • What is causing ImportError: No module named…
  • 'block in draw' rails 6 routes
  • How do I install PIL/Pillow for Python 3.6?
  • How to fix symbol lookup error: undefined symbol…
  • CSS Grid Layout not working in IE11 even with prefixes
  • hide select options using only css
  • Using Python 3 in virtualenv
  • Determine if Python is running inside virtualenv
  • How to install packages offline?
  • Pip not working in base conda environment
  • pip install - locale.Error: unsupported locale setting
  • What is the difference between pip and conda?
  • How can I install pip on Windows?
  • ImportError: No module named scipy
  • In Jquery show selected a value from the searched…
  • Can't install Scipy through pip
  • Keycloak/Wildfly How to configure all console logs…
  • No module named pkg_resources
  • 'pip install' fails for every package ("Could not…
  • Using the RUN instruction in a Dockerfile with…
  • Python pip install module is not found. How to link…
  • How to get the PYTHONPATH in shell?
  • What is the most compatible way to install python…
  • SDL_SetRenderTarget() hangs for a while if multiple…
  • coercing to Unicode: need string or buffer, NoneType…
  • tell pip to install the dependencies of packages…
  • How do I update pip itself from inside my virtual…
  • How can I get a list of locally installed Python modules?
  • Emberjs Modal as a route
  • How do I resolve `The following packages have unmet…
  • How to change default install location for pip
  • How to uninstall a package installed with pip install --user
  • Issue with virtualenv - cannot activate
  • How to install pandas from pip on windows cmd?
  • Mac OS X - EnvironmentError: mysql_config not found
  • How to state in requirements.txt a direct github source
  • How to add a regular list view in the extended part…
  • 'int' object has no attribute 'user_list'. (Django…
  • Vue unit tests failing because component method…
  • How to show multiple select options when user select…
  • RecursionError: maximum recursion depth exceeded in…
  • Proper .htaccess config for Next.js SSG
  • error: command 'gcc' failed with exit status 1 while…
  • Installing SciPy with pip
  • Install pip in docker
  • Comprehensive beginner's virtualenv tutorial?
  • Installation Issue with matplotlib Python
  • How do SO_REUSEADDR and SO_REUSEPORT differ?
  • Where does pip install its packages?
  • pip installs packages successfully, but executables…
  • Homebrew: how to list the N last installed packages?
  • php display array results by first letter from select option
  • How do I install Python packages on Windows?
  • How do I find the location of my Python…
  • How do I deal with installing peer dependencies in…
  • Mac OS X and multiple Java versions
  • Using Pip to install packages to Anaconda Environment
  • Specify custom `virtualenv` command for tox

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

Is arr.__len__() the preferred way to get the length of an array in Python?

Next Post:

How to check if an object is an array?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

.net ajax android angular arrays aurelia backbone.js bash c++ css dataframe ember-data ember.js excel git html ios java javascript jquery json laravel linux list mysql next.js node.js pandas php polymer polymer-1.0 python python-3.x r reactjs regex sql sql-server string svelte typescript vue-component vue.js vuejs2 vuetify.js

  • you shouldn’t need to use z-index
  • No column in target database, but getting “The schema update is terminating because data loss might occur”
  • Angular – expected call-signature: ‘changePassword’ to have a typedeftslint(typedef)
  • trying to implement NativeAdFactory imports deprecated method by default in flutter java project
  • What should I use to get an attribute out of my foreign table in Laravel?
© 2022 Fix Code Error