How to install and import theano.tensor on google colab?
I am attaching the program code below:
pip install Theano
import theano.tensor as tt
Below is a description of the error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-82b00d491f91> in <cell line: 2>()
1 get_ipython().system('pip install Theano')
----> 2 import theano.tensor as tt
8 frames
/usr/local/lib/python3.10/dist-packages/numpy/__init__.py in __getattr__(attr)
317
318 if attr in __former_attrs__:
--> 319 raise AttributeError(__former_attrs__[attr])
320
321 if attr == 'testing':
AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations