I got an error while installing requirements (gmpy2). The issue got resolved after running the below command.
Now I have an ImportError: cannot import name 'gcd' from 'fractions' on running [2] - Factorization Number
sudo apt install libmpc-dev
sudo apt install python3-pip
pip3 install --user gmpy2==2.1.0a2