You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In various docker-files, you install 3rd party python libraries like this:
$ pip install dependency1 dependency2 ..
Sooner or later, these dependencies will need different versions of a sub-dependency, and then pip will fail because of a version conflict.
I recommend that you put these dependencies in requirements-files with version numbers and install them like this:
$ pip install -r requirements-for-subsystem-1.txt
You can generate a requirements file with pip freeze or better: pip-compile from piptools.
By using the same requirements-files everywhere you can make reproducible deploys, and also test on the actual versions that will be deployed. Much recommended!
The text was updated successfully, but these errors were encountered:
In various docker-files, you install 3rd party python libraries like this:
$ pip install dependency1 dependency2 ..
Sooner or later, these dependencies will need different versions of a sub-dependency, and then pip will fail because of a version conflict.
I recommend that you put these dependencies in requirements-files with version numbers and install them like this:
$ pip install -r requirements-for-subsystem-1.txt
You can generate a requirements file with
pip freeze
or better: pip-compile from piptools.By using the same requirements-files everywhere you can make reproducible deploys, and also test on the actual versions that will be deployed. Much recommended!
The text was updated successfully, but these errors were encountered: