This site runs best with JavaScript enabled.

Installing chebpy on google colab


February 23, 2021

When you try to install the chebpy package on Google Colab like so:

!pip install chebpy

It runs into the following error:

Successfully installed chebpy-0.2
File "/usr/local/lib/python3.6/dist-packages/chebpy/", line 175
print T2.shape, f.shape, F2.shape, T1.shape
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(T2.shape, f.shape, F2.shape, T1.shape)?

This is because the version that gets installed through pip is a version that runs on Python 2.x and Google Colab by default runs on Python 3.

To install a Python 3 compatible version install the package directly from github like so:

!pip install git+
Share article

Jesse © 2021