Validating Python¶
Let us validate Python on Ubuntu VM that is provisioned.
By default, Ubuntu 18.04 VM will have Python3 installed. You can run
python3
and launch Python CLI.However, there might not be additional important modules such as pip, venv etc.
We need to validate and ensure that they are installed. If
pip
andvenv
are not installed you can install them using these commands.
sudo apt install python3-pip -y
python3 -m pip install configparser
sudo apt install python3-venv -y
python3 -m venv testing
ls -ltr
rm -rf testing