-
Overview
virtualenv
is not a real isolation, it’s a poor man’s isolation using path hacks and symlinks - you are still within your own operating system.Docker
provides more isolation, but not as much as a full-on virtual machine.You could think of a container as a middle-ground between a virtualbox(heavy, expensive) and a virtualenv(light, cheap).
-
Virtualenv
virtualenv
only encapsulates Python dependencies.With a Python
vitualenv
, you can easily switch between Python versions and dependencies, but you’re stuck with your host OS. -
Docker
A
docker
理解虚拟环境virtualenv VS. Docker
最新推荐文章于 2025-03-01 19:09:37 发布