Create a python environment
python -m venv env
Activate the newly created environment
source env/bin/activate
Upgrade pip and install dependencies
pip install --upgrade pip
pip install scrapy
Activate the python environment
source env/bin/activate