Author Archives: Kiprono Koech

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

Open URL in Chrome Browser in Python

The webbrowser module, which comes preinstalled with Python, is a library that can be used to control web browsers. This article will show how this module can be used to open tabs and windows on installed browsers. You will get to choose the browser to use, whether to open the URL you want to visit on a new window or not and whether to open a new tab.

Continue reading