今天安装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安装的可能错误的排除的更多相关文章

  1. python pip安装模块提示错误failed to create process

    python pip安装模块提示错误failed to create process 原因: 报这个错误的原因,是因为python的目录名称或位置发生改动. 解决办法: 1.找到修改python所在的 ...

  2. 当利用pip安装模块出现错误时咋办

    >在DOS窗口中到Python安装路径的scripts中执行  pip install pyperclip 出现错误 >>错误提示:Fatal error in launcher: ...

  3. Python:Ubuntu上使用pip安装opencv-python出现错误

    Ubuntu 18.04 上 使用 pip 安装 opencv-python,出现的错误如下: 1 ~$: pip install opencv-python -i https://pypi.tuna ...

  4. windows下PIP安装模块编码错误解决

    原因是pip安装Python包会加载我的用户目录,我的用户目录恰好是中文的,ascii不能编码.解决办法是: python目录 Python27\Lib\site-packages 建一个文件site ...

  5. pip 安装psycopg的错误

    psycopg包安装有点问题,特别是在windows下,pip从requirements.txt批量安装总是出错,发现是这个包的问题. 这里需要用easy_install来装,因为gfw的问题,最好下 ...

  6. 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 ...

  7. 【原】python3.7 无法pip安装提示ssl错误解决方案

    问题 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not av ...

  8. Python从2.6升级到2.7,使用pip安装module,报错:No Module named pip.log(转载)

    From:http://blog.csdn.net/iefreer/article/details/8086834 python升级后,使用pip安装module,错误: 错误原因:版本升级后,之前的 ...

  9. 使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误

    使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误 使用pip安装python插件的时候出现Microsoft Visual C++ 9.0缺失错误 : ...

随机推荐

  1. 自动获取svn的版本号

    需求 在做打包时,需要获取本地svn仓库的版本号,如下所示: 下面是我试过的几种做法 SubWCRev 使用SubWCRev.exe(TortoiseSVN自带的小工具),用法简单,但获取到的版本号有 ...

  2. C# -- 内插字符串的使用

    C# -- 内插字符串的使用 (1) 字符串文本以 $ 字符开头,后接左双引号字符. $ 符号和引号字符之间不能有空格.(2) 内插字符串表达式的结果可以是任何数据类型.(3) 可通过在内插表达式后接 ...

  3. JavaScript -- 时光流逝(一):数据类型,变量,类型转换,函数

    JavaScript -- 知识点回顾篇(一):数据类型,变量,类型转换,函数 1. 数据类型 Boolean:值类型,布尔(逻辑)只能有两个值:true 或 false. Number:值类型,Ja ...

  4. [福大软工] Z班 软件工程实践总结 作业成绩

    作业要求 http://www.cnblogs.com/easteast/p/8081265.html 评分细则 本次作业评分满分为20分,分为五个部分,分别如下: 回望过去(5'):以实际数据总结分 ...

  5. 【Linux基础】awk命令

    1.awk命令说明 (1)awk是行处理器: 相比较屏幕处理的优点,在处理庞大文件时不会出现内存溢出或是处理缓慢的问题,通常用来格式化文本信息 (2)awk处理过程:  依次对每一行进行处理,然后输出 ...

  6. 2.05-random-uesr-proxy

    import urllib.request def proxy_user(): proxy_list = [ {"https":""}, # {"ht ...

  7. Java学习笔记(四)——好记性不如烂键盘(答答租车)

    根据所学知识,编写一个控制台版的租车系统. 功能: 1. 展示所有可租车辆 2. 选择车型.租车辆 3. 展示租车清单,包含:总金额.总载货量及其车型.总载人量及其车型 代码参考imooc中Java课 ...

  8. 转://oracle Wallet在expdp/impdp中使用场景

    oracle Wallet的使用(即内部加密技术TDE(Transparent Data Encryption )) 1. TDE是Oracle10gR2中推出的一个新功能,使用时要保证Oracle版 ...

  9. 转://因触发器限制导致oracle用户登录失败

    使用PL/SQL DEV登录数据库时,出现如下错误 手工创建了test用户,通过dev工具登录没问题.怀疑数据库中有些用户限制了登录的.再看错误编号:ORA-20001,oracle保留的异常错误号范 ...

  10. P2256 一中校运会之百米跑(map+并查集)

    思路:首先处理名字,让字符串直接映射唯一一个数字,这就用map<string, int>即可. 然后,直接用并查集 #include<iostream> #include< ...