I'm trying to install mysql-connector-python
and I'm getting the following error:
Could not find any downloads that satisfy the requirement mysql-connector-python==2.0.4 (from -r requirements.txt (line 2))
Cleaning up...
No distributions at all found for mysql-connector-python==2.0.4 (from -r requirements.txt (line 2))
The steps I have followed are:
virtualenv -p python3 env/
source env/bin/activate
pip3 install -r requirements.txt --allow-external mysql-connector-python
The requirements.txt
contains the following:
beautifulsoup4==4.4.1
mysql-connector-python==2.0.4
requests==2.9.1
wheel==0.24.0
How can overcome this issue?
How to install mysql-connector-python without pip
git clone [email protected]:mysql/mysql-connector-python.git
cd mysql-connector-python
python setup.py install
You can actually verify this worked with pip freeze
or pip list
at this point. If you want to install a particular version you can check available versions with git tag -n
and then switch to one with, e.g. git checkout 2.0.4
and then run setup.py install again.
Background
http://bugs.mysql.com/bug.php?id=79811.
After seeing that you were having the same problem as me, I decided to research the issue on Oracle's end. I noticed that over the last few years they have had multiple bug tickets about this already and someone else had commented yesterday about the broken installation. Sadly, these tickets were closed "not bugs" and here we are today, again with broken links.
Update
Per response on my bug ticket, it seems this is the root of the problem:
PyPI has decided to not allow any longer the externally hosted projects. I had an email about this a few months ago.