mggg / ecological-inference

Ecological inference, in Python
MIT License
28 stars 11 forks source link

Add pin to Theano-PyMC 1.0.5 for use with google colabs #85

Closed karink520 closed 3 years ago

karink520 commented 3 years ago

It looks like Google Colab has Theano-PyMC==1.1.2 installed. We're pinning to Theano 1.0.5, which works fine locally/running in a fresh environment, but having the later version of Theano-PyMC seems to cause problems in Colab.

You can work around this in a colab by installing pyei with:

!pip install pyei "Theano-PyMC==1.0.5"

instead of the simpler pip install that used to work:

!pip install pyei

I suggest we add a pin to Theano-PyMC==1.0.5 in the requirements.txt file. The downside adding this requirement is that it would makes the installation a little heavier weight, with something that isn't actually required in most cases. The benefit of adding this is that then !pip install pyei would "just work" within a colab.