All installation method see Installation and Quickstart.
Installation via pip see Installation via Pip.
pip3.8 install drake
sudo apt-get install --no-install-recommends libpython3.8 libx11-6 libsm6 libxt6 libglib2.0-0
Install Drake to /opt/drake
curl -O https://drake-packages.csail.mit.edu/drake/nightly/drake-latest-focal.tar.gz
sudo tar -xvzf drake-latest-focal.tar.gz -C /opt
python3 example.py
See CMake Project with an Installed Drake.
cd simple_continuous_time_system/build
cmake ..
make
./simple_continuous_time_system
See Drake Tutorial. This tutorial is compiled with the bazel build tool. It has similar functions as CMake.