pythonpython-venv

What is the purpose of pyvenv.cfg after the creation of a Python virtual environment?


When I create a virtual environment in Python on Windows cmd, in the virtual environment folder, the following files appear:

What is the goal of pyvenv.cfg creation? Can I use it in any way?


Solution

  • pyvenv.cfg is a configuration file that stores information about the virtual environment such as

    If print content of pyvenv.cfg

    $ cat myenv/pyvenv.cfg
    home = /usr/bin
    include-system-site-packages = false
    version = 3.8.5