System MX linux 21.3 on Macbook Pro 13 inch mid 2012. I want to install python 2 and python 2 packages alongside python 3. Therefore I proceeded to install and run pyenv-virtualenv. When I try to preinstall dependencies as suggested in realpython website(I used 'apt' in place of 'apt-get'),
$ sudo apt-get install -y make build-essential libssl-dev zlib1g-dev
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
I could not proceed. I tried installing one by one. Only these two remained 'python-openssl' and 'tk-dev'. When I try to install them Konsole shows error
dh-python: breaks: python
breaks: python:i386
How do I resolve this problem? Can I install and run pyenv-virtualenv without installing 'python-openssl' and 'tk-dev'? Do I need to uninstall dh-python? Do I install only pyenv and proceed from there?
python2; I guess that doesn't work for some reason?