我正在尝试使用pip在Mac上的virtualenv中安装MySQL-python==1.2.5
pip install MySQL-python==1.2.5
获得以下错误。
MySQL-python==1.2.5 Collecting MySQL-python==1.2.5 From cffi callback <function _verify_callback at 0x105e815f0>: Traceback (most recent call last): File "/Users/harshit.jain/Documents/workspace/venv/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
_lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/mysql-python/ From cffi callback <function
_verify_callback at 0x107798758>: Traceback (most recent call last): File "/Users/harshit.jain/Documents/workspace/venv/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
_lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/mysql-python/ From cffi callback <function
_verify_callback at 0x1077c9488>: Traceback (most recent call last): File "/Users/harshit.jain/Documents/workspace/venv/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
_lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/mysql-python/ From cffi callback <function
_verify_callback at 0x1077c95f0>: Traceback (most recent call last): File "/Users/harshit.jain/Documents/workspace/venv/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
_lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/mysql-python/ From cffi callback <function
_verify_callback at 0x1077c9500>: Traceback (most recent call last): File "/Users/harshit.jain/Documents/workspace/venv/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
_lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /simple/mysql-python/ From cffi callback <function
_verify_callback at 0x1077c9668>: Traceback (most recent call last): File "/Users/harshit.jain/Documents/workspace/venv/lib/python2.7/site-packages/OpenSSL/SSL.py", line 309, in wrapper
_lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Could not fetch URL https://pypi.org/simple/mysql-python/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mysql-python/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)) - skipping
无法找到满足要求的版本MySQL-python == 1.2.5(来自版本:)
找不到MySQL-python == 1.2.5
的匹配分布答案 0 :(得分:0)
见最后两行:
Could not find a version that satisfies the requirement MySQL-python==1.2.5 (from versions: )
No matching distribution found for MySQL-python==1.2.5
MySQL-pytho lib问题的版本。也许你可以尝试另一个版本的MySQL-python。