Trying to create OpenWRT build system for Omega
linux on chip device according to manual on my Ubuntu 20. Got error below while run make menuconfig
...
Checking 'python'... failed.
...
Build dependency: Please install Python 2.x
My system has Python 3
while manual asks to install Python 2
.
How to solve this problem?
Since Python3 is not backward compatible you need to provide Python2 for installation. Follow this instructions to create an isolated Python2 environment in your system:
sudo apt install python2
curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo apt install virtualenv
virtualenv --python=python2 myenv
source myenv/bin/activate
deactivate
You can also install required python packages (if needed) by using pip in your activated environment.