Installing oTree
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)
Recommended: oTree.org platform
The fastest way to build your games is to use the oTree AI Builder. You build your games through an AI chat, no coding required. It includes hosting directly on otree.org. It uses a more advanced and more professionally developed version of oTree than the one described in this documentation.
Alternative: locally installed oTree
Although we recommend the oTree.org platform for all new users, a locally installed oTree is useful for some use cases such as replicating old experiments.
Enter this command at the prompt:
pip3 install otree --upgrade
Use otree startproject <name> to create a new project.
Use otree startapp <name> to create a new app.
Use otree devserver to start the development server.
Upgrading oTree
To upgrade oTree, use the same command:
pip3 install otree --upgrade