Unable to install Selenium WebDriver through command prompt

三世轮回 提交于 2020-03-26 04:27:26

问题


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.


回答1:


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

Then run

python get-pip.py

Then do

pip install -U selenium

Then use this in your code:

from selenium import webdriver



回答2:


If you already have Python installed in your computer, then you need only do this:

pip install selenium


来源:https://stackoverflow.com/questions/51726711/unable-to-install-selenium-webdriver-through-command-prompt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!