Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find the existing package installed in the google Colab

I want to check if some packages are installed in the Colab. What is specific folder for storing the installed packages (e.g., keras)?

like image 260
jingweimo Avatar asked Feb 13 '20 18:02

jingweimo


1 Answers

You can use the pip tool to list installed Python packages and their locations on the system:

!pip list -v | grep [Kk]eras
# Keras                    2.2.5           /usr/local/lib/python3.6/dist-packages pip      
# Keras-Applications       1.0.8           /usr/local/lib/python3.6/dist-packages pip      
# Keras-Preprocessing      1.1.0           /usr/local/lib/python3.6/dist-packages pip      
# keras-vis                0.4.1           /usr/local/lib/python3.6/dist-packages pip      

Note that in Colab and other Jupyter notebook frontends, the ! character is used to execute a shell command.

like image 178
jakevdp Avatar answered Sep 22 '22 15:09

jakevdp