mac 多python版本安装paramiko时的问题总结

https://blog.csdn.net/qq_40689831/article/details/81736242

问题分析及总结:

1、命令:“pip install paramiko”

提示报错:

Could not fetch URL https://pypi.python.org/simple/paramiko/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping

Could not find a version that satisfies the requirement paramiko (from versions: )

No matching distribution found for paramiko

You are using pip version 9.0.1, however version 18.0 is available.

You should consider upgrading via the ‘pip install –upgrade pip’ command.

安装升级命令pip“pip install –upgrade pip”

提示报错:

Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping

Requirement already up-to-date: pip in /Library/Python/2.7/site-packages

You are using pip version 9.0.1, however version 18.0 is available.

You should consider upgrading via the ‘pip install –upgrade pip’ command.

原因:针对上面的问题,查找原因就是存在多个python版本的问题,

解决方法:

一、是分析原因时在网上查找到的一个简单的方法:“多版本Python共存,以及pip对应”修改对应的pip就可以实现了。具体可查看原始说明:https://blog.csdn.net/scdxmoe/article/details/53514863,可供大家参考使用。

二、本人昨天操作的解决的办法,用“brew install python@2”重新安装了一个新的pythonV2.7.15,没有用mac系统原来带的PythonV2.7.10,并安装了pipV18.0。

你可能感兴趣的:(python)