How to install Fenics in a python virtual environment?

I want to install Fenics in Ubuntu 20 in a virtual python environment which I create using:
python3 -m venv test
source test/bin/activate

I could not find the instructions on the website on how to install fenics in a python virtual environment. Rather the below codes are available to install Fenics in Ubuntu. After activating my environment I used:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install --no-install-recommends fenics

Then I install spyder using:
pip install spyder

after launching spyder I cannot run the example below, I get a module error saying there is no fenics module.

How can I solve this issue?