- Create a project directory.
- Change into the project directory.
- Create virtual environment:
pip install virtualenv
virtualenv venv --python=<YOUR_PYTHON_VERSION>
For example:
virtualenv venv --python=3.7.6
- Activate virtual environment:
venv/Scripts/activate
- Install python packages into a virtual environment:
pip install -r requirements.txt
- Download ChromeDriver
- Change this line, where executable_path is directory path that contains the executable:
driver = webdriver.Chrome(executable_path=r"YOUR_PATH", chrome_options=options)
- Run esia.py
- When you’re done working on a project deactivate virtual environment:
venv/Scripts/deactivate