无法通过命令提示符安装Selenium WebDriver [英] Unable to install Selenium WebDriver through command prompt

查看:129
本文介绍了无法通过命令提示符安装Selenium WebDriver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用命令"python setup.py install"在cmd提示符下安装Selenium WebDriver时,出现错误该程序无法启动,因为api-ms-win-crt-runtime-Il-1-0.您的计算机中缺少dll".我正在使用Python版本3.7,并且已在环境变量中设置了Python的路径.请帮助我解决该问题,因为我是Python的新手.

When I try to install Selenium WebDriver on cmd prompt using command "python setup.py install" I am getting error "The program can't start because api-ms-win-crt-runtime-Il-1-0.dll missing from your computer". I am using Python version-3.7 and I have set the path of the Python in environment variable. Please help me how to solve this issue, I am new to Python.

推荐答案

下载 get-pip. py 到计算机中的目录.

Download get-pip.py to a directory in your computer.

然后运行

python get-pip.py

然后做

pip install -U selenium

然后在您的代码中使用它:

Then use this in your code:

from selenium import webdriver

这篇关于无法通过命令提示符安装Selenium WebDriver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆