检查最新版本的pip时出错

时间:2018-04-09 16:44:48

标签: python pip

我正在尝试使用pip安装一些软件包并收到错误

pip install docker==2.7.0
  Could not find a version that satisfies the requirement docker==2.7.0 (from versions: )
No matching distribution found for docker==2.7.0

使用-vvv选项:

HTTPError: 403 Client Error: TLSv1.2+ is required for url: https://pypi.python.org/pypi/pip/json

几天前没有这样的问题

pip版本:pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)

2 个答案:

答案 0 :(得分:2)

问题出在旧的openssl链接到系统python。 所以我从系统中卸载所有python发行版并使用<%= u.text_field :first_name, class: "value" %>

安装最后一个python

可以检查链接到python的openssl版本

brew install python@2

答案 1 :(得分:0)

curl https://bootstrap.pypa.io/get-pip.py | python -

这对我有用,Mac Sierra 10.12.6 ...... https://github.com/pypa/packaging-problems/issues/130

相关问题