Geert JM Vanderkelen

Installing MySQL Connector/Python using pip v1.5

Installing MySQL Connector/Python using pip v1.5

The latest pip versions will fail on you when the packages it needs to install are not hosted on PyPI. When you try to install MySQL Connector/Python the usually way, you get following message is:

shell> pip install mysql-connector-python
  Could not find any downloads that satisfy the requirement 
    mysql-connector-python
  Some externally hosted files were ignored 
    (use --allow-external mysql-connector-python to allow).

I have updated the download URL to include the MD5 checksum, and MySQL Connector/Python should now install using pip using following command:

shell> pip install --allow-external mysql-connector-python \
  mysql-connector-python

Yes, you have to repeat the mysql-connector-python name.

10 thoughts on “Installing MySQL Connector/Python using pip v1.5

  1. Cole

    Thanks, this saved my bacon…I was beating my head against the wall wondering why it couldn’t find the “external” host even when I had the –allow-external flag.

  2. Rob

    Thanks for keeping this module updated and available via pip!!! Helluva lot easier than it was the last time I used your connector.

  3. Luke Massa

    Just an FYI, running

    pip install mysql-connector-python

    On CentOS 6.5 with pip 1.3.1 and python 2.6.6 just worked for me without any “allow-external” stuff.

Leave a Reply

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

− 5 = 1

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>