Window7环境下Python2.7安装pip后出现InsecurePlatformWarning及SNIMissingWarning错误
解决方法
step 1: win+r打开命令行界面
step 2: 输入下述命令
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --upgrade pip
结果: 甭管step2中的命令是否成功,你只要执行此命令即可,最后使用pip list查看
发现没有之间的错误了。
重要的是使用pip命令时添加“-i http://pypi.douban.com/simple --trusted-host pypi.douban.com ”。其中,使用的是豆瓣镜像源,你也可以使用其他镜像源。
step 3: 若step2中的pip升级失败,使用easy_install升级pip
easy_install pip
结果如下所示
其中,easy_install是setuptools安装完成就有的。