简体   繁体   中英

Unable to install Selenium WebDriver through command prompt

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.

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

如果您的计算机中已经安装了 Python,那么您只需执行以下操作:

pip install selenium

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM