加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

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

发布时间:2020-12-16 21:42:06 所属栏目: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-connec
我正在尝试安装 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读