It looks like you added “~/.local/bin” to the start of your PATH in your bashrc which meant that Python was loading the wrong libraries. I have changed it so that “~/.local/bin” is at the end of your PATH so it should work now.