我对Python世界很陌生,所以请耐心等待我 我有一台运行High Sierra的Mac(10.13.4)。我在上面安装了Python,现在我有两个Python 2.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 alert protocol version
openssl 1.0.2o_1
pip --version:pip 9.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
有人可以帮帮我吗?我试图找到自己的答案,但到目前为止都失败了,所以需要帮助。