ssl:tlsv1\警报\协议\版本

eulz3vhy  于 2021-06-23  发布在  Mysql
关注(0)|答案(0)|浏览(345)

我对Python世界很陌生,所以请对我有耐心。
我有一台运行速度很快的mac(10.13.4)。我在上面安装了python,现在我有两个python2.7.10和3.6.5,据我所知2.7.10是mac的默认版本,我不应该修改它。
现在,我正在尝试将python3连接到mysql。我正在运行以下命令:

pip install MySQL-python

但是面对一个错误

Collecting MySQL-python3
  Could not fetch URL https://pypi.python.org/simple/mysql-python3/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement MySQL-python3 (from versions: )
No matching distribution found for MySQL-python3

我尝试了这里提供的解决方案
ssl.sslerror:tlsv1警报协议版本
openssl 1.0.2o\u 1
pip—版本:pip9.0.1 from/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages(python 3.5)
我尝试通过运行以下命令来安装virtualenv:

sudo pip install virtualenv

但仍然有一个错误:

Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv

有人能帮帮我吗?我试图找到自己的答案,但迄今为止都失败了,所以需要帮助。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题