This installs Drake using pip,
the Python package manager.
Follow the setup instructions for Ubuntu or Mac OS.
See Installation via Pip for more information on installation.
If on Ubuntu, first install the required packages:
setup/install_prereqsThis script will also run setup/setup_env,
which creates the virtual environment for this project and installs Drake.
To start programming, simply activate the environment by calling:
source env/bin/activateIf on Mac OS X, simply ensure the correct version of Python is installed from Homebrew by referring to the Supported Configurations.
Then, run the following script to create the virtual environment for this project and install Drake:
setup/setup_envNote: If you have multiple versions of Python installed,
you can specify the correct version as an optional argument
to the script. For example, to use python3.14, call:
setup/setup_env --python-version 3.14Refer to the Drake installation documentation for the versions of Python officially supported on each OS when installing via PyPI.
To start programming, simply activate the environment by calling:
source env/bin/activateTo run the particle example tests in this directory,
navigate to src and call the test file to execute the unit tests:
cd src
python3 particle_test.pyFor more information on what's available for Drake in Python, see Using Drake from Python and the Python API pydrake.