要在Windows上下载pip,我按了https://pip.pypa.io/en/stable/installing/(下载了get-pip.py文件,然后在命令提示符下运行它)。
然而,我得到了这个:
收集点子c:\ users \ licar \ appdata \ local \ temp \ tmpwp5zx3 \ pip.zip \ pip_vendor \ urllib3 \ util \ ssl_.py:339:SNIMissingWarning:已发出HTTPS请求,但SNI(主题名称指示)此平台不提供TLS扩展。这可能导致服务器显示错误的TLS证书,这可能导致验证失败。您可以升级到较新版本的Python来解决此问题。有关更多信息,请参阅https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings c:\ users \ licar \ appdata \ local \ temp \ tmpwp5zx3 \ pip.zip \ pip_vendor \ urllib3 \ util \ ssl_.py:137:insecurePlatformWarning:真正的SSLContext对象不可用。这可以防止urllib3正确配置SSL,并可能导致某些SSL连接失败。您可以升级到较新版本的Python来解决此问题。有关更多信息,请参阅https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings 重试(重试(总计= 4,连接=无,读取=无,重定向=无,状态=无))连接被“SSLError”破坏后(SSLError(1,' _ssl.c:504:错误) :1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本'),)':/ simple / pip / c:\ users \ licar \ appdata \ local \ temp \ tmpwp5zx3 \ pip.zip \ pip_vendor \ urllib3 \ util \ ssl_.py:137:insecurePlatformWarning:真正的SSLContext对象不可用。这可以防止urllib3正确配置SSL,并可能导致某些SSL连接失败。您可以升级到较新版本的Python来解决此问题。有关更多信息,请参阅https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings 重试(重试(总计= 0,连接=无,读取=无,重定向=无,状态=无))连接被' SSLError断开后(SSLError(1,' _ssl.c:504:错误) :1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本'),)':/ simple / pip / c:\ users \ licar \ appdata \ local \ temp \ tmpwp5zx3 \ pip.zip \ pip_vendor \ urllib3 \ util \ ssl_.py:137:insecurePlatformWarning:真正的SSLContext对象不可用。这可以防止urllib3正确配置SSL,并可能导致某些SSL连接失败。您可以升级到较新版本的Python来解决此问题。有关更多信息,请参阅https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings 无法获取网址https://pypi.org/simple/pip/:确认ssl证书时出现问题:HTTPSConnectionPool(host =' pypi.org',port = 443):使用url超出最大重试次数:/ simple / pip / (由SSLError引起(SSLError(1,' _ssl.c:504:错误:1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本'),)) - 跳过 找不到满足要求pip的版本(来自版本:) 找不到匹配的匹配分发
关于我能做什么的任何建议?我需要使用更新版本的python吗?谢谢:))
答案 0 :(得分:1)
您可以升级到较新版本的Python来解决此问题。
所以回答你的问题:是的,获得一个新版本的python。根据文档,你需要python 2.7.9或更高版本。
编辑:我没看到你的版本(2.7.5)。是的,这是一个版本问题。更新python会解决它。
答案 1 :(得分:0)
有些东西会阻止您的安装。尝试添加代理并尝试:
//Check if the internet is connected or not
let connectedRef = Database.database().reference(withPath: ".info/connected")
connectedRef.observe(.value, with: { snapshot in
let myActivityIndicator = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.whiteLarge)
myActivityIndicator.center = self.view.center
if snapshot.value as? Bool ?? false {
print("Connected")
myActivityIndicator.stopAnimating()
myActivityIndicator.isHidden = false
}
else {
myActivityIndicator.startAnimating()
print("Not connected")
}
testView.addSubview(myActivityIndicator)
})
答案 2 :(得分:0)
就我而言,将python版本更新为 2.7.16 可行