Most libraries can be quickly installed using pip
or apt
.
Python 3
To install pytorch
, add a cell with:
!pip3 install -q http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl && pip3 install -q torchvision
Here is an example laptop
Python 2
For example, to install pytorch
, add a cell with the following command:
!pip install -q http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl && pip install -q torchvision
( 25 .)
opencv
, :
!pip install -q opencv-python && apt -qq update && apt -qq install -y libsm6 libxext6