问题
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