Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Updating library version in Google Colab

Google Colab currently uses version 0.10.2 of the Statsmodels library. However, I want to update this to the latest library of Statsmodels (0.13.0).

In[1]: statsmodels.__version__
Out[1]: '0.10.2'

The pre-requisits for using the latest version of Statsmodels is upheld by the versions of each library in Colab.
The pre-requisists are:

Python >= 3.7
NumPy >= 1.17
SciPy >= 1.3
Pandas >= 1.0
Patsy >= 0.5.2

Colab versions:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Python 3.7.13
NumPy version: 1.21.6
SciPy version: 1.4.1
Pandas version: 1.3.5
Patsy version: 0.5.2

How do I update the library-version in Colab?

>Solution :

By placing ‘!’ (apostrophes excluded) at the beginning of the command in Colab, you will run it as if you were running it inside a terminal window and it should be updated in Colab.

Example:

!pip install statsmodels==0.13.0

Let me know if this solved your issue. Good luck with your project!

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading