You will need to be online to install packages.
First update and upgrade your system. Enter the following commands into the terminal:
sudo apt-get update
sudo apt-get upgrade
Now you need to install the network package for Python3 using pip3:
sudo pip3 install network