天下之事,必先处之难,而后易之。
君临
知我者谓我心忧,不知我者谓我何求

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 ~]#


 

posted on 2017-08-21 11:28  boonya  阅读(601)  评论(0编辑  收藏  举报

我有佳人隔窗而居,今有伊人明月之畔。
轻歌柔情冰壶之浣,涓涓清流梦入云端。
美人如娇温雅悠婉,目遇赏阅适而自欣。
百草层叠疏而有致,此情此思怀彼佳人。
念所思之唯心叩之,踽踽彳亍寤寐思之。
行云如风逝而复归,佳人一去莫知可回?
深闺冷瘦独自徘徊,处处明灯影还如只。
推窗见月疑是归人,阑珊灯火托手思忖。
庐居闲客而好品茗,斟茶徐徐漫漫生烟。

我有佳人在水之畔,瓮载渔舟浣纱归还。
明月相照月色还低,浅近芦苇深深如钿。
庐山秋月如美人衣,画堂春阁香气靡靡。
秋意幽笃残粉摇曳,轻轻如诉画中蝴蝶。
泾水潺潺取尔浇园,暮色黄昏如沐佳人。
青丝撩弄长裙翩翩,彩蝶飞舞执子手腕。
香带丝缕缓缓在肩,柔美体肤寸寸爱怜。
如水之殇美玉成欢,我有佳人清新如兰。
伊人在水我在一边,远远相望不可亵玩。