在安装一个Python库onetimepass时发生下面的问题:
pip install onetimepass
Could not fetch URL https://pypi.python.org/simple/six/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600) - skipping
Could not find a version that satisfies the requirement six (from onetimepass) (from versions: )
No matching distribution found six (from onetimepass)
经过网上查阅资料,发现是python版本的问题,高版本的Python会默认SSL。
解决方法:
pip install --trusted-host pypi.python.org onetimepass
参考文献
http://stackoverflow.com/questions/16370583/pip-issue-installing-almost-any-library