I have created an Azure function and I am trying to build a Azure pipeline. The pipeline fails at install application dependencies with the below error.
ERROR: Cannot install -r requirements.txt (line 8) and azure-storage-blob==2.1.0 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested azure-storage-blob==2.1.0
azure-storage-file-datalake 12.7.0 depends on azure-storage-blob<13.0.0 and >=12.12.0
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict.
Below is the code in the install dependencies.
python -m venv worker_venv
source worker_venv/bin/activate
pip install setuptools
pip install -r requirements.txt
In my requirements.txt file the azure-storage-blob version is 2.1.0. Should I remove the version part in the requirements.txt file and trying running the pipeline. Is there any other way to fix this issue.
Thank you.