python2/3+selenium+chrome driver 64位环境配置

摘要:
更改计算机,重新配置环境,并在Notes=============================================1中安装环境。python2环境https://www.python.org/downloads/release/python-2714/下载64位Windows x86-64MSI安装程序,双击安装配置环境变量,然后将相应的目录添加到路径C

新换了电脑,重新配置下环境,备忘下

=============================================================== 

1.python2环境安装

https://www.python.org/downloads/release/python-2714/

下载64位Windows x86-64 MSI installer双击安装

配置环境变量,将对应的目录添加path

C:Python27和C:Python27Scripts(pip的路径)

验证cmd输入python 

2.selenium安装,使用pip安装

 C:Windowssystem32>pip install selenium

这样下载的是selenium3 “ Successfully installed selenium-3.141.0 urllib3-1.24.1”

验证

python环境import selenium

3.chromedriver安装

http://chromedriver.storage.googleapis.com/index.html,可惜没有我要的64位driver啊

版本 70.0.3538.110(正式版本) (64 位)

下载个win32试试,

解压后将exe文件拷贝到chrome的目录下C:......lGoogleChromeApplication

将C:......lGoogleChromeApplication这个目录添加到环境变量path中

4验证环境

>>> from selenium import webdriver
>>> dr=webdriver.Chrome()

DevTools listening on ws://127.0.0.1:62805/devtools/browser/7c83c3a9-7fe7-43be-9fdc-02c824a59290
>>> dr.get('https://www.baidu.com/')
>>>

成功

=====================================================

python3环境安装

1.安装python3

下载双击安装目录选择d:/python3,配置环境变量,将D:python3Scripts添加道path中

2.使用pip安装seleni

cd D:python3Scripts

python3 -m pip install selenium

python2/3+selenium+chrome driver 64位环境配置第1张

 3.chromedriver

因为上个python2已经安装配置了driver,所以掠过这一步

4.验证是否成功

python2/3+selenium+chrome driver 64位环境配置第2张

免责声明:文章转载自《python2/3+selenium+chrome driver 64位环境配置》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇对LVDS的浅显理解使用gopherjs 进行web 应用开发下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

allure安装教程

1.下载allure的安装包 我下载的是这个版本:allure2.12.1 2.安装jdk 下载路径:https://www.oracle.com/cn/java/technologies/javase-jdk15-downloads.html jdk的环境变量配置在步骤3: 检查jdk安装是否成功 3.配置环境变量 验证安装是否成功: cm...

Python3.7源码包编译安装

环境: [root@localhost python3]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@localhost python3]# 1、下载Python 方式一: 进入 https://www.python.org/downloads/sourc...

SQL*Plus环境变量设置浅析

    SQL*Plus的使用环境是可以通过login.sql 或 glogin.sql脚本来设置的,可能很多初学者或不习惯使用SQL*Plus的老鸟都不知道。因为在如今UI工具(Toad、PL/SQL Developer..)大行其道的年代,SQL*Plus这种命令工具渐渐被冷落了,可能只是偶尔被用用,不过这并不妨碍它被很多DBA或SQL*Plus爱好者...

Windows下手动配置Oracle Client的要点

Windows下手动配置Oracle Client的要点我的Windows上原有Oracle 9的客户端, 想使用cx_Oracle和python些点东西, cx_Oracle官网上没有for python2.7和Oracle9的安装包, 但有for oracle10的安装包. 所以需要先安装Oracle 10 client. 可能是因为卸载Oracle...

VC中使用Matlab Engine出现"无法找到libeng.dll"的问题

VC中使用Matlab Engine出现"无法找到libeng.dll"的问题 本以为使这个原因 ,其实不是我2了 #include "engine.h" //终于知道为什吗老是找不到那个库文件--是因为添加的头文件是以引号括起来的啊 //#include <engine.h> 不是因为环境变量没有生效的缘故 其实目前来说应该是这个问题no c...

allure安装与环境变量配置

                                                                         allure安装与环境变量配置 一、下载allure文件    1、下载地址:https://repo.maven.apache.org/maven2/io/qameta/allure/allure-comman...