Ignore conflicts encountered during setuptools installation

TL DR

How can I specify to setuptoolsignore dependency conflicts and continue normally?

Background

My Python project has a set of Google Cloud dependencies declared in a file requirements.txt. These Google Cloud dependencies have a transitive dependency conflict that is ultimately resolved, and the application seems to be functioning properly.

Execution pip install -r requirements.txtsucceeds and pipdeptreereports these conflicts, but python setup.py installfails due to these conflicts.

Alerts generated by pipdeptree

Warning!!! Possibly conflicting dependencies found:
* gapic-google-cloud-pubsub-v1==0.15.3
- oauth2client [required: >=2.0.0,<4.0dev, installed: 4.0.0]
* google-gax==0.15.8
- oauth2client [required: >=2.0.0,<4.0dev, installed: 4.0.0]
* grpc-google-cloud-pubsub-v1==0.14.0
- oauth2client [required: >=2.0.0,<4.0dev, installed: 4.0.0]
* proto-google-cloud-pubsub-v1==0.15.3
- oauth2client [required: >=2.0.0,<4.0dev, installed: 4.0.0]
* grpc-google-iam-v1==0.11.1
- oauth2client [required: <4.0.0dev,>=2.0.0, installed: 4.0.0]

Errors caused by python setup.py install

error: oauth2client 4.0.0 is installed but oauth2client<4.0dev,>=2.0.0 is required by set(['proto-google-cloud-pubsub-v1', 'gapic-google-cloud-pubsub-v1', 'google-gax'])
;
+4
source share
1 answer

. setuptools , .

+2

Source: https://habr.com/ru/post/1678063/


All Articles