Debian Bullseye forcing move to Python3
How to install pip2 and then any required python2 modules, and continue to use Python2 code I've already written, and don't want/need to re-write to python3.
sudo apt-get install python-is-python2
from https://www.linuxcapable.com/how-to-install-python-pip-pip3-on-debian-11-bullseye
sudo apt install curl -y curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py sudo python2 get-pip.py
Then it's possible to install python2 modules via pip2
gm4slv@shack:~$ sudo pip2 install numpy
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
Please upgrade your Python as Python 2.7 is no longer maintained.
pip 21.0 will drop support for Python 2.7 in January 2021.
More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
pip 21.0 will remove support for this functionality.
Collecting numpy
Downloading numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0 MB)
|████████████████████████████████| 17.0 MB 196 kB/s
Installing collected packages: numpy
Successfully installed numpy-1.16.6
— John Pumford-Green 12/07/22 19:20