Category Archives: Python

Kill Subprocess in Python

Python Subprocess is an excellent module for running external commands within a Python script. When this module is used, process(es) related to the executing command is started. This article will cover ways to terminate these processes created by subprocess (parent and child processes).

Continue reading

No Module Named Venv in Python 3

The venv module comes pre-installed in Python 3.3 and later. If the module is not installed, then you will run into ModuleNotFoundError: No module named ‘venv’ when you try importing the module on the script (by running “import venv“) or on the terminal/command line when you run “python -m venv <env_name>“.

Continue reading