Installing oTree on Windows

Important note

If you publish research done with oTree, you are required to cite this paper. (Citation: Chen, D.L., Schonger, M., Wickens, C., 2016. oTree - An open-source platform for laboratory, online and field experiments. Journal of Behavioral and Experimental Finance, vol 9: 88-97)

If the below steps don’t work for you, please email with details.

Step 1: Install Python

Download and install Python 3.7. (3.8 not recommended currently.)

Check the box to add Python to PATH:


Step 2: Install oTree

Go to the folder where you want to store your oTree project. Then click the “File” menu and open PowerShell:


Enter this command at the prompt:

pip3 install -U otree

If you get an error like “Microsoft Visual C++ is required”, uninstall Python 3.8 and install 3.7 (simple solution), or install the Visual C++ Build Tools (somewhat more complicated).

Next steps

  • If you will use oTree Studio (recommended), go to
  • If you will use PyCharm or another text-based code editor, follow the steps here.