关于 pip安装的可能错误的排除
今天安装selenium总是报错(下为错误信息)
C:\Python27\Scripts>pip install selenium
Collecting selenium
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subje
ct Name Indication) extension to TLS is not available on this platform. This may
cause the server to present an incorrect TLS certificate, which can cause valid
ation failures. You can upgrade to a newer version of Python to solve this. For
more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.ht
ml#ssl-warnings
SNIMissingWarning
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. T
his prevents urllib3 from configuring SSL appropriately and may cause certain SS
L connections to fail. You can upgrade to a newer version of Python to solve thi
s. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-u
sage.html#ssl-warnings
InsecurePlatformWarning
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError(SSLError(1, '_ssl.c:507: error:1407742E:SS
L routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/sel
enium/
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. T
his prevents urllib3 from configuring SSL appropriately and may cause certain SS
L connections to fail. You can upgrade to a newer version of Python to solve thi
s. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-u
sage.html#ssl-warnings
InsecurePlatformWarning
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError(SSLError(1, '_ssl.c:507: error:1407742E:SS
L routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/sel
enium/
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. T
his prevents urllib3 from configuring SSL appropriately and may cause certain SS
L connections to fail. You can upgrade to a newer version of Python to solve thi
s. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-u
sage.html#ssl-warnings
InsecurePlatformWarning
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError(SSLError(1, '_ssl.c:507: error:1407742E:SS
L routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/sel
enium/
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. T
his prevents urllib3 from configuring SSL appropriately and may cause certain SS
L connections to fail. You can upgrade to a newer version of Python to solve thi
s. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-u
sage.html#ssl-warnings
InsecurePlatformWarning
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError(SSLError(1, '_ssl.c:507: error:1407742E:SS
L routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/sel
enium/
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. T
his prevents urllib3 from configuring SSL appropriately and may cause certain SS
L connections to fail. You can upgrade to a newer version of Python to solve thi
s. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-u
sage.html#ssl-warnings
InsecurePlatformWarning
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None))
after connection broken by 'SSLError(SSLError(1, '_ssl.c:507: error:1407742E:SS
L routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/sel
enium/
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. T
his prevents urllib3 from configuring SSL appropriately and may cause certain SS
L connections to fail. You can upgrade to a newer version of Python to solve thi
s. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-u
sage.html#ssl-warnings
InsecurePlatformWarning
Could not fetch URL https://pypi.python.org/simple/selenium/: There was a prob
lem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org',
port=443): Max retries exceeded with url: /simple/selenium/ (Caused by SSLError(
SSLError(1, '_ssl.c:507: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv
1 alert protocol version'),)) - skipping
Could not find a version that satisfies the requirement selenium (from version
s: )
No matching distribution found for selenium
C:\Python27\lib\site-packages\pip-10.0.0b2-py2.7.egg\pip\_vendor\urllib3\util\ss
l_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. T
his prevents urllib3 from configuring SSL appropriately and may cause certain SS
L connections to fail. You can upgrade to a newer version of Python to solve thi
s. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-u
sage.html#ssl-warnings
InsecurePlatformWarning
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem con
firming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=44
3): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1,
'_ssl.c:507: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert prot
ocol version'),)) - skipping
可以解决问题的解决方法:
此情况只用于网络不畅的安装模块背景:
总出现红色的
Could not find a version that satisfies the requirement pymongo(from version:)
你可能会遇到下面这样的情况:
是因为网络的问题,要使用国内的镜像源来加速
解决办法:
你需要的是在你的命令行下面添加一句
例如:原本执行的命令是:
pip install selenium
改为:
pip install selenium -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
结果会就成功:
ok!问题解决!
关于 pip安装的可能错误的排除的更多相关文章
- python pip安装模块提示错误failed to create process
python pip安装模块提示错误failed to create process 原因: 报这个错误的原因,是因为python的目录名称或位置发生改动. 解决办法: 1.找到修改python所在的 ...
- 当利用pip安装模块出现错误时咋办
>在DOS窗口中到Python安装路径的scripts中执行 pip install pyperclip 出现错误 >>错误提示:Fatal error in launcher: ...
- Python:Ubuntu上使用pip安装opencv-python出现错误
Ubuntu 18.04 上 使用 pip 安装 opencv-python,出现的错误如下: 1 ~$: pip install opencv-python -i https://pypi.tuna ...
- windows下PIP安装模块编码错误解决
原因是pip安装Python包会加载我的用户目录,我的用户目录恰好是中文的,ascii不能编码.解决办法是: python目录 Python27\Lib\site-packages 建一个文件site ...
- pip 安装psycopg的错误
psycopg包安装有点问题,特别是在windows下,pip从requirements.txt批量安装总是出错,发现是这个包的问题. 这里需要用easy_install来装,因为gfw的问题,最好下 ...
- python2 使用pip安装psycopg2出现错误:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-mvzdNj/psycopg2/
公司业务需求,开发语言python2,需要使用数据库:postgresql,需要安装模块psycopg2这个模块, 使用pip install psycopg2 报错: Command "p ...
- 【原】python3.7 无法pip安装提示ssl错误解决方案
问题 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not av ...
- Python从2.6升级到2.7,使用pip安装module,报错:No Module named pip.log(转载)
From:http://blog.csdn.net/iefreer/article/details/8086834 python升级后,使用pip安装module,错误: 错误原因:版本升级后,之前的 ...
- 使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误
使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误 使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误 : ...
随机推荐
- 4.9Python数据处理篇之Matplotlib系列(九)---子图分布
目录 目录 前言 (一)subplot()方法 ==1.语法说明== ==2.源代码== ==3.输出效果== (二)subplot2grid方法 ==1.语法说明== ==2.源代码== ==3.展 ...
- June 15. 2018 Week 24th Friday
If at first you don't succeed, then dust yourself off and try again. 失败了没关系,重振旗鼓,从头再来. From Aaliyah, ...
- ZooKeeper Observers解决节点过多时写性能下降问题
ZooKeeper Observers Observers: Scaling ZooKeeper Without Hurting Write Performance How to use Observ ...
- 部署tinyproxy代理服务
#安装依赖 yum install asciidoc #下载 wget https://github.com/tinyproxy/tinyproxy/releases/download/1.8.4/t ...
- SecureCRT8.1+SecureCRT_keygen完成注册
原文:https://www.cnblogs.com/qiyawei/p/7822957.html 1.下载完secureCRT8.1之后,进行安装. 点击secureCRT.exe的时候会出现如下图 ...
- Django进阶使用
Model 到目前为止,当我们的程序涉及到数据库相关操作时,我们一般都会这么搞: 创建数据库,设计表结构和字段 使用 MySQLdb 来连接数据库,并编写数据访问层代码 业务逻辑层去调用数据访问层执行 ...
- 【Vuex】mapGetters 辅助函数
mapGetters 辅助函数仅仅是将 store 中的 getter 映射到局部计算属性: import { mapGetters } from 'vuex' export default { // ...
- 微信硬件平台(一) 公众号 ESP8266 Arduino LED
微信硬件平台 本文目的,使用微信公众号控制ESP8266的LED开和关.进一步使用微信当遥控器(避免写APP或者IOS或者小程序),控制一切设备.给两个关键的总教程参考. 官网教程 微信硬件平台 微 ...
- Xmind8 破解
链接: https://pan.baidu.com/s/1IaNyngxJnKDQ0dNqPasA7w 提取码: g3q2 步骤1: 下载安装XMind 8 . 百度网盘下载: https://pan ...
- truffle框架的简单使用
truffle 给大家介绍一下这个框架怎么使用,其实把这个框架就是你们看我之前有一个教程是教你们怎么用remix-ide来连接私有链,编译,配置合约,然后进行调用的,truffle其实就是把这个步骤放 ...