There are quite a few solutions, e.g. hosting a private repository, but the quickest was to change the requirements.txt file to download from mysql's cdn.

i.e., to change:

mysql-connector-python==1.0.12

to

https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.1.15.tar.gz
Answer from Amnon on Stack Overflow
🌐
MySQL
bugs.mysql.com › 80208
MySQL Bugs: #80208: Not possible to install mysql-connector-python package from pip
Currently i get the following error ... --allow-external is deprecited in pip 8 and higher How to repeat: Create a virtual enviroment and run the following command: pip install mysql-connector-python....
🌐
MySQL
bugs.mysql.com › bug.php
MySQL Bugs: #76063: pypi package missing
February 26, 2015 - How to repeat: $ pip install mysql-connector-python Downloading/unpacking 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). Cleaning up... No distributions at all found for mysql-connector-python Storing debug log for failure in /home/graingert/.pip/pip.log Suggested fix: wget https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.3.zip unzip mysql-connector-python-2.0.3.zip cd mysql-connector-python-2.0.3 python setup.py sdist register upload
🌐
LinuxTut
linuxtut.com › en › cb71b8b90c2af1ad059e
How to install mysql-connector with pip3
May 27, 2016 - $ echo https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.1.3.tar.gz >> requirements.txt $ sudo pip3 install -r ./requirements.txt
🌐
Python
python.su › forum › topic › 29544
Python-сообщество / Python для новичков / mysql конфликт
March 16, 2016 - 1. удалите mysql-connector из пакетов ОС 2. Какая версия питона у вас используется? pip search mysql |grep connector mysql-connector-python (2.0.4) - MySQL driver written in Python
🌐
Stack Overflow
stackoverflow.com › questions › 37039782 › python3-5-refuse-to-work-with-mysql-connector
python - Python3.5 Refuse to Work with MySQL Connector - Stack Overflow
Your non-standard Python3 path suggests you did not get Python3 from a CentOS repository, right? ... Anzel/Ray - Thanks for the lead. Your input is much appreciated!! ... I've figured it out. Anzel was right about the fact that it's installed globally in the default python2.6 directory. Here's how I fixed it: Launch the default python interpreter, in my case "python" -> python2.6, and run the commands below to see where "MySQL.connector" was installed.
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 35614907 › trying-to-set-up-mysql-connector-python-and-getting-error
Trying to set up mysql-connector-python and getting error - Stack Overflow
CopyTraceback (most recent call last): File "/Users/andrewmayes/virtualenv/lib/python3.5/site-packages/dnspython3-1.12.0-py3.5.egg-info/practice.py", line 2, in <module> import mysql.connector File "/Users/andrewmayes/virtualenv/lib/python3.5/site-packages/mysql/connector/__init__.py", line 34, in <module> import _version ImportError: No module named '_version' And when I try to upgrade... CopyCollecting myswl-connector-python Could not find a version that satisfies the requirement myswl-connector-python (from versions: ) No matching distribution found for myswl-connector-python
🌐
PYnative
pynative.com › home › python › databases › install mysql connector python on windows, macos, linux, unix and ubuntu
Install MySQL Connector Python on Windows, MacOs, Linux, Unix and Ubuntu
March 9, 2021 - Please refer to the following table of MySQL connector Python versions. You need to install a module that is compatible with your Python version. Great! Now you can choose the version as per your need.
🌐
Stack Exchange
gis.stackexchange.com › questions › 230517 › to-be-able-to-use-mysql-connector-python-inside-qgis-python-script
pyqgis - to be able to use mysql-connector-python inside QGIS python script - Geographic Information Systems Stack Exchange
March 2, 2017 - MySQL_python-1.2.5-cp27-none-win_amd64.whl mysqlclient-1.3.10-cp27-cp27m-win_amd64.whl and install them pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl pip install mysqlclient-1.3.10-cp27-cp27m-win_amd64.whl · see https://www.a2hosting.com/kb/developer-corner/mysql/connecting-to-mysql-using-python for the python code example to deal with db connections. ... def doQuery( conn ) : cur = conn.cursor() cur.execute( "SELECT name, vendor FROM t" ) for bname,bvendor in cur.fetchall() : print bname,bvendor import MySQLdb myConnection = MySQLdb.connect(host=<host_ip>, user=db_user, passwd=db_pass, db=db_schema_or_db_instance ) doQuery( myConnection ) myConnection.close()
🌐
GitHub
github.com › travis-ci › travis-ci › issues › 1987
No distributions at all found for mysql-connector-python==1.1.6 · Issue #1987 · travis-ci/travis-ci
February 22, 2014 - I just test CI, and I use mysql-connector-python 1.1.6 but, I get the fail. like this:https://travis-ci.org/RobberPhex/Django-SimplePastebin/jobs/19390378
Author   travis-ci
🌐
MySQL
bugs.mysql.com › bug.php
MySQL Bugs: #86105: mysql-connector-python fails to work with django 1.11
April 27, 2017 - Posted by developer: Fixed in 2.1.7. Connector/Python is now compatible with Django 1.11. ... When is version 2.1.7 going to be available? Here's what I get when I try to get 2.1.7: brad$ pip install mysql-connector==2.1.7 Collecting mysql-connector==2.1.7 Could not find a version that satisfies the requirement mysql-connector==2.1.7 (from versions: 2.1.3, 2.1.4, 2.1.6, 2.2.3) No matching distribution found for mysql-connector==2.1.7 ** and 2.2.3 does not install at all.
🌐
Stack Overflow
stackoverflow.com › questions › 69312623 › unable-to-install-mysql-connector-for-python-3-8-5
Unable to install mysql connector for Python 3.8.5 - Stack Overflow
WARNING: Retrying (Retry(total=4, ... /simple/mysql-connector-python/ ERROR: Could not find a version that satisfies the requirement mysql-connector-python ERROR: No matching distribution found for mysql-connector-python...
🌐
Stack Overflow
stackoverflow.com › questions › 72633729 › connect-to-mysql-database-python3-9
python - connect to mysql database python3.9 - Stack Overflow
June 15, 2022 - already tried that but I get ERROR: Could not find a version that satisfies the requirement MySQL-python (from versions: 1.2.3b1, 1.2.3b2, 1.2.3rc1, 1.2.3, 1.2.4b1, 1.2.4b2, 1.2.4b3, 1.2.4b4, 1.2.4b5, 1.2.4rc1, 1.2.4, 1.2.5) ERROR: No matching distribution found for MySQL-python@VítorCézar ... This site has the answer you're looking for. You'll need mysqlclient, mysql-connector-python and PyMySQL.
🌐
Stack Overflow
stackoverflow.com › questions › 75002679 › unable-to-install-mysql-connector-python
Unable to install mysql-connector-python - Stack Overflow
C:\Users\a0229010>python -m pip ...tor-python/ ERROR: Could not find a version that satisfies the requirement mysql-connector-python==3.7.3 (from versions: none) ERROR: No matching distribution found for mysql-connector-python==3.7.3...
🌐
Wikimedia Phabricator
phabricator.wikimedia.org › T110445
T110445 Don't know what to put in setup.py/requirements.txt to satisfy both dpkg-buildpackage and tox-flake8
August 27, 2015 - The script works great. By trial and error I learnt that I need to list mysql-connector-python-rf (NB: -rf) as install_requires in setup.py to make the Jenkins tests pass, because with mysql-connector-python it complains:
🌐
Jason Favrod
jasonfavrod.com › home › mysql and python3
MySQL and Python3 - Jason Favrod
May 23, 2018 - Support for MySQL doesn’t ship with the Python installer, therefore we need to install a package that adds this functionality. I usually use pip3 for this task, and I tried the following. ... I found code examples online showing import MySQLdb statements, so I figured that was the name of the package. I was wrong. Could not find a version that satisfies the requirement MySQLdb (from versions: ) No matching distribution found for MySQLdb
🌐
GitHub
github.com › ShahriyarR › MySQL-AutoXtraBackup › issues › 366
No matching distribution found for mysql-connector==2.1.4 · Issue #366 · ShahriyarR/MySQL-AutoXtraBackup
September 25, 2019 - I try to install an old version (because I have configured everything for it, I will upgrade later) but it says this: pip3 install mysql-autoxtrabackup==1.5.2 Collecting mysql-autoxtrabackup==1.5.2 Downloading https://files.pythonhosted....
Author   ShahriyarR