pip安装命令:

 python -V
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Xvfb安装命令:

yum install Xvfb

Selenium安装命令:

pip install -U selenium

详细操作全部日志:

[root@mysqlserver ~]# python -V
Python 2.6.6
[root@mysqlserver ~]# ls
anaconda-ks.cfg create_table Desktop devicemapper Documents Downloads home index.html install.log install.log.syslog Music Pictures Public Templates Videos zabbix-agent-3.2.6-1.el6.x86_64.rpm
[root@mysqlserver ~]# wget https://bootstrap.pypa.io/get-pip.py
--2017-08-21 11:20:55-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io... 151.101.72.175
Connecting to bootstrap.pypa.io|151.101.72.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1595408 (1.5M) [text/x-python]
Saving to: “get-pip.py” 100%[====================================================================================================================================================================================================================================>] 1,595,408 2.36M/s in 0.6s 2017-08-21 11:21:11 (2.36 MB/s) - “get-pip.py” saved [1595408/1595408] [root@mysqlserver ~]# ls
anaconda-ks.cfg create_table Desktop devicemapper Documents Downloads get-pip.py home index.html install.log install.log.syslog Music Pictures Public Templates Videos zabbix-agent-3.2.6-1.el6.x86_64.rpm
[root@mysqlserver ~]# python get-pip.py
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting pip
/tmp/tmp4Lh3BY/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject 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 validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
/tmp/tmp4Lh3BY/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 346kB/s
Collecting setuptools
Downloading setuptools-36.2.7-py2.py3-none-any.whl (477kB)
100% |████████████████████████████████| 481kB 797kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 1.5MB/s
Collecting argparse; python_version == "2.6" (from wheel)
Downloading argparse-1.4.0-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, argparse, wheel
Found existing installation: argparse 1.2.1
Uninstalling argparse-1.2.1:
Successfully uninstalled argparse-1.2.1
Successfully installed argparse-1.4.0 pip-9.0.1 setuptools-36.2.7 wheel-0.29.0
/tmp/tmp4Lh3BY/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
[root@mysqlserver ~]# yum install Xvfb
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package xorg-x11-server-Xvfb-1.17.4-16.el6.centos.x86_64 already installed and latest version
Nothing to do
[root@mysqlserver ~]# yum -y install libXfont
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package libXfont-1.5.1-2.el6.x86_64 already installed and latest version
Nothing to do
[root@mysqlserver ~]# yum install xorg-x11-fonts*
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package xorg-x11-fonts-misc-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-14-100dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-1-75dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-100dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-9-100dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-cyrillic-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-75dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-9-75dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-15-75dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-1-100dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-14-75dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-15-100dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-Type1-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-2-75dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ISO8859-2-100dpi-7.2-11.el6.noarch already installed and latest version
Package xorg-x11-fonts-ethiopic-7.2-11.el6.noarch already installed and latest version
Nothing to do
[root@mysqlserver ~]# pip install -U selenium
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting selenium
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject 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 validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading selenium-3.5.0-py2.py3-none-any.whl (921kB)
    100% |████████████████████████████████| 921kB 737kB/s
Installing collected packages: selenium
Successfully installed selenium-3.5.0
[root@mysqlserver ~]#

centos安装pip Xvfb Selenium的更多相关文章

  1. [Python爬虫] 在Windows下安装PIP+Phantomjs+Selenium

    最近准备深入学习Python相关的爬虫知识了,如果说在使用Python爬取相对正规的网页使用"urllib2 + BeautifulSoup + 正则表达式"就能搞定的话:那么动态 ...

  2. centos 安装 Pip 的方法总结

    转自https://blog.csdn.net/u014236259/article/details/75212659 在我们安装Python后,如果未安装包管理工具pip,此时需要自己手动安装: 方 ...

  3. centos 安装pip,使用pip安装django

    python版本要2.7.x以上版本,若未安装python执行以下命令安装: wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz ...

  4. centos安装pip,zipimport.ZipImportError报错

    安装pip下载pip安装包wget https://bootstrap.pypa.io/get-pip.py 执行以下报错 python get-pip.py ##报错内容(zipimport.Zip ...

  5. CentOS安装pip

    环境 操作系统:CentOS 6.7 32-bit Python:2.6.6 安装 先安装setuptools和wget yum -y install wget wget https://pypi.p ...

  6. centos安装pip扩展包

    1.安装 epel-release扩展yum源# yum install -y epel-release# yum clean all# yum makecache2.安装setuptools# yu ...

  7. CentOS安装pip并修改源为豆瓣源

    使用yum进行安装 yum install python-pip 若出现 No package python-pip available. 则解决方法如下: yum -y install epel-r ...

  8. centos 安装 pip

    下载文件 wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate 执行安装 python get-pip.py

  9. Centos下安装pip失败或新装

    Centos安装pip失败: [root@localhost /]# yum -y install pip已加载插件:fastestmirrorRepodata is over 2 weeks old ...

随机推荐

  1. 一个boost底下的线程池

    Boost的thread库中目前并没有提供线程池,我在sorceforge上找了一个用boost编写的线程池.该线程池和boost结合的比较好,并且提供了多种任务执行策略,使用也非常简单. 下载地址: ...

  2. Windows基础-使用XAudio2播放音频(本质是WASAPI)

    对于常见的音频播放,使用XAudio2足够了. 时间是把杀猪刀,滑稽的是我成了猪 早在Windows Vista中,M$推出了新的音频架构UAA,其中的CoreAudio接替了DSound.WaveX ...

  3. js常用函数总结

    字符串函数 indexOf 返回字符串中一个子串第一处出现的索引(从左到右搜索).如果没有匹配项,返回 -1 . var index1 = a.indexOf("l"); //in ...

  4. django视图重定向

    # 原创,转载请留言联系 当请求访问到某个视图时,我们想让它重定向到其他页面,应该怎么做呢? 1.HttpResponseRedirect 需求:当我们访问127.0.0.1/my_redirect时 ...

  5. [loj#101] 最大流 网络流模板

    #101. 最大流 内存限制:512 MiB时间限制:5000 ms标准输入输出 题目类型:传统评测方式:文本比较 上传者: 匿名 提交提交记录统计讨论测试数据   题目描述 这是一道模板题. 给定  ...

  6. [BZOJ1052][HAOI2007]覆盖问题 二分+贪心

    1052: [HAOI2007]覆盖问题 Time Limit: 10 Sec  Memory Limit: 162 MB Submit: 2053  Solved: 959 [Submit][Sta ...

  7. Python的程序结构[2] -> 类/Class[5] -> 内建类 bytes 和 bytearray

    内建类 bytes 和 bytearray / Built-in Type bytes and bytearray 关于内建类 Python的内建类 bytes 主要有以下几点: class byte ...

  8. 洛谷—— P3908 异或之和

    https://www.luogu.org/problemnew/show/P3908 题目描述 求1 \bigoplus 2 \bigoplus\cdots\bigoplus N1⨁2⨁⋯⨁N 的值 ...

  9. luogu P1577 切绳子

    题目描述 有N条绳子,它们的长度分别为Li.如果从它们中切割出K条长度相同的 绳子,这K条绳子每条最长能有多长?答案保留到小数点后2位. 输入输出格式 输入格式: 第一行两个整数N和K,接下来N行,描 ...

  10. 代理模式(Proxy)--动态代理(JDK)

    在是上一篇博客中实现了静态代理. 在上篇的结尾提到了一个问题: 思考:如果我们下需要对火车,自行车实现相同的代理,我们又该如何实现呢? 这篇博客就来解决这个问题: 解决这类问题需要用到动态代理技术,实 ...