Search code examples
pythonvirtualenvtox

Do I need virtualenv if I have tox?


According to the tox documentation, it is a "virtualenv management tool". So, when I create a new project, do I still need virtualenv if tox can do a better job for multiple Python versions virtual environment setup?


Solution

  • As a follow-up to @sinoroc's answer:

    You can also use tox to create a development environment with the following command:

    tox devenv my-dev-env
    

    where my-dev-env is an arbitrary path name of your choice in which tox will to create the virtual environment. So in this case tox will create a virtual environment in the my-dev-env directory.

    For more information see tox CLI documentation: https://tox.wiki/en/4.14.1/cli_interface.html#tox-devenv-(d)