Unable to reproduce the results of tutorial

I am unable to reproduce the results of Bayesian Hierarchical Linear Regression locally. Though, upon using colab it produced the results as shown in the tutorial. As one possible solution, I checked out the versions installed on colab and tried installing them locally but that did not work out due to this error:

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'.

What is the possible solution for it to run locally and produce results as shown in tutorial? Also, this makes me wonder how much does results usually depend on versions of library?