V
V
Vadim2022-01-17 03:04:23
Python
Vadim, 2022-01-17 03:04:23

Why do almost all Docker images for python backends use pip, not pipenv?

Hello everyone,

just wondering, I've seen a lot of articles on dockerizing DRF, Flask or FastAPI backends and they all use pip and a requirements.txt file... no one uses installing packages in docker image via pipenv. Why? After all, now pipenv for installing packages in the environment Wirth has become no less popular than the old pip?

all the best,
Vadim

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dr. Bacon, 2022-01-17
@bacon

Why docker need pipenv, this is extra software. Pipenv and others are convenient for development, and to build an image, a basic pip and requirements are enough, which was just generated by "pipenv and others"
PS nevertheless, if you really want to, you can use it, no one forbids it.

M
mkone112, 2022-01-17
@mkone112

Slowly, sometimes by orders of magnitude.

N
Nikolay Savelyev, 2022-01-17
@AgentSmith

pip is more stable and widespread than the rare and unnecessary pipenv.

K
korsar182, 2022-01-18
@korsar182

Because most of these articles are copy-paste.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question