python-3.x – 找不到满足要求mysql-connector-python的任何下载

我正在尝试安装 mysql-connector- python,我收到以下错误
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))

我遵循的步骤是:

virtualenv -p python3 env/
source env/bin/activate
pip3 install -r requirements.txt --allow-external mysql-connector-python

requirements.txt包含以下内容

beautifulsoup4==4.4.1
mysql-connector-python==2.0.4
requests==2.9.1
wheel==0.24.0

怎么能克服这个问题?

解决方法

如何在没有pip的情况下安装mysql-connector-python
git clone git@github.com:MysqL/mysql-connector-python.git
cd mysql-connector-python
python setup.py install

实际上,您可以使用pip freeze或pip list来验证这一点.如果要安装特定版本,可以使用git tag -n检查可用版本,然后切换到一个版本,例如: git checkout 2.0.4然后再次运行setup.py install.

背景

http://bugs.mysql.com/bug.php?id=79811.

在看到你和我有同样的问题之后,我决定在Oracle的最后研究这个问题.我注意到在过去的几年里他们已经有多个关于这个的错误票,而且其他人昨天评论过破损的安装.可悲的是,这些门票被关闭“没有错误”,今天我们今天也是这样,链接断了.

更新

根据我的错误故障单的响应,似乎这是问题的根源:

PyPI has decided to not allow any longer the externally hosted projects. I had an email about this a few months ago.

相关文章

我最近重新拾起了计算机视觉,借助Python的opencv还有face_r...
说到Pooling,相信学习过CNN的朋友们都不会感到陌生。Poolin...
记得大一学Python的时候,有一个题目是判断一个数是否是复数...
文章目录 3 直方图Histogramplot1. 基本直方图的绘制 Basic ...
文章目录 5 小提琴图Violinplot1. 基础小提琴图绘制 Basic v...
文章目录 4 核密度图Densityplot1. 基础核密度图绘制 Basic ...