PIP安装失败
尝试安装失败: 使用-H标志进行第二次尝试PIP安装失败,pip,osx-mavericks,Pip,Osx Mavericks,尝试安装失败: 使用-H标志进行第二次尝试 Users-MacBook-Air:~ user$ sudo -H pip install hidapi Could not fetch URL https://pypi.python.org/simple/hidapi/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol versio
Users-MacBook-Air:~ user$ sudo -H pip install hidapi
Could not fetch URL https://pypi.python.org/simple/hidapi/: 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 hidapi (from versions: )
No matching distribution found for hidapi
要诊断TLS版本的故障,请执行以下操作:
python -c "import json, urllib2; print json.load(urllib2.urlopen('https://www.howsmyssl.com/a/check'))['tls_version']"
我的TLS版本返回1.0
问题
--user
标志来解决。Pip也找不到您请求的模块的名称。可能是因为它不在PyPi上,或者是因为internet/https问题,请确保它在PyPi上,或者是从.whl
文件安装,这可以通过谷歌搜索找到大多数模块python -c "import json, urllib2; print json.load(urllib2.urlopen('https://www.howsmyssl.com/a/check'))['tls_version']"