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

前端之家收集整理的这篇文章主要介绍了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相关文章