Install Selenium Python- VSCode
1. Install Python
2. Open cmd, check python version: python -V; pip --version
3. Type: pip install selenium
4. Type: pip install pytest
5. Check library: pip list
# pip install selenium
# pip install webdriver-manager
# Create a virtual environment in the terminal
# python -m venv .venv
Using the Create Environment command
To create local environments in VS Code using virtual environments or Anaconda, you can follow these
steps: open the Command Palette (Ctrl+Shift+P), search for the Python: Create Environment command,
and select it.
The command presents a list of environment types: Venv or Conda.
If you are creating an environment using Venv, the command presents a list of interpreters that can be
used as a base for the new virtual environment.
If you are creating an environment using Conda, the command presents a list of Python versions that
can be used for your project.
After selecting the desired interpreter or Python version, a notification will show the progress of the
environment creation and the environment folder will appear in your workspace.