printenv

Print Blender environments and list devices.

blender -b --python examples/printenv.py

You will see the informations as follows:

get_blender_path() = /home/shq/blender/blender-2.92.0-linux64
get_blender_version() = 2.92
get_pre_python_packages_path() = /home/shq/blender/blender-2.92.0-linux64/2.92/python/bin/../lib/python3.7/site-packages
get_custom_python_packages_path() = /home/shq/blender/blender-2.92.0-linux64/custom-python-packages
get_python_bin_folder() = /home/shq/blender/blender-2.92.0-linux64/2.92/python/bin
get_python_bin() = /home/shq/blender/blender-2.92.0-linux64/2.92/python/bin/python3.7m
get_installed_packges() =
    pip 21.2.4
    setuptools 57.4.0
    wheel 0.37.0
    cached-property 1.5.2
    cycler 0.10.0
    gitdb 4.0.7
    gitpython 3.1.18
    h5py 3.3.0
    imageio 2.9.0
    kiwisolver 1.3.1
    matplotlib 3.4.2
    numpy 1.21.2
    opencv-python 4.5.3.56
    pillow 8.3.1
    pyparsing 2.4.7
    python-dateutil 2.8.2
    pyyaml 5.1.2
    six 1.16.0
    smmap 4.0.0
    tqdm 4.62.1
    typing-extensions 3.10.0.0
    xmltodict 0.12.0
Devices:
    0 NVIDIA GeForce RTX 2060
    1 NVIDIA GeForce RTX 2060
    2 Intel Core i7-8700K CPU @ 3.70GHz