美文网首页我爱编程百人计划
【python☞0】selenuim安装简述

【python☞0】selenuim安装简述

作者: _王子_ | 来源:发表于2017-03-14 23:22 被阅读0次
    学一门语言,先从掉坑开始,so,我就静静的看着你装逼,哦!是静静的看着装python+selenium,我们开始吧

    准备工具:

    python2.7    下载地址:http://pan.baidu.com/s/1geCtiOb

                        (3.6版本:http://pan.baidu.com/s/1qYxxUrU          

                           Mac版本: http://pan.baidu.com/s/1slEWPhr )

    下载setuptools【python的基础包工具】

    http://pypi.python.org/pypi/setuptools

    下载pip【python的安装包管理工具】

    https://pypi.python.org/pypi/pip

    pycharm    版本不限制,个人喜欢,都是英文版本(http://pan.baidu.com/s/1o8uekVC  这个版本需要装jdk1.8以上),当然也有汉化版本这对于英语较弱的同学来说还是有点帮助的(http://pan.baidu.com/s/1sl4hze1)

    python安装图解步骤见:https://jingyan.baidu.com/article/0bc808fc42dfab1bd485b99f.html

    安装完python,再分别安装setuptools,和安装pip,最后pip install -U selenium(版本号)

    详细步骤:https://wapwenku.baidu.com/view/7e39278ef5335a8102d220fb.html?ssid=0&from=1086k&uid=0&pu=usm@1,sz@320_1002,ta@iphone_2_7.0_2_7.2&bd_page_type=1&baiduid=A085DB66355B6C3746DF6C9ADD8E26ED&tj=www_normal_8_0_10_title#1

    如果本机没联网,那先下载安装包,再导入,selenium下载地址:https://pypi.python.org/pypi/selenium


    检查selenium

    安装成功后,会在你的python目录下产生产生一个selenium文件夹

    C:\Python27\Lib\site-packages\selenium-2.53.5-py2.7.egg

    里面有2个文件夹EGG-INFO和selenium

    如果有这个就基本代表安装成功了。

    也可以在py程序里用from selenium import selenium试试,运行成功则代表安装是成功的

    相关文章

      网友评论

        本文标题:【python☞0】selenuim安装简述

        本文链接:https://www.haomeiwen.com/subject/gabhnttx.html