Contents

Fixing missing Ubuntu dependencies installing Python with RTX

Contents

Fixing the install of python via rtx.

  • ModuleNotFoundError: No module named '_bz2'
  • ModuleNotFoundError: No module named '_curses'
  • ModuleNotFoundError: No module named 'readline'
  • ModuleNotFoundError: No module named '_tkinter'
  • ModuleNotFoundError: No module named 'yaml'

Most of these modules aren’t really needed by me, but I’d rather not have the errors.

1
2
3
apt-get install libbz2-dev libncurses5-dev libreadline-dev libyaml-dev
rtx uninstall python
rtx install python

I’ve not found how to install the requirements for tkinter yet. Given that rtx is compiling python, installing python-tk kind of defeats that purpose.