:orphan: .. _install-windows: 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) Choose your editor ------------------ If you will build your apps with OTAI (easiest option), go to `otreehub.com `__. If you have more programming experience, you can use oTree with a text editor. oTree installation ------------------ .. note:: If you want help installing or using oTree, ask our chat assistant `Otai `__! Step 1: Install Python ^^^^^^^^^^^^^^^^^^^^^^^ Install Python from `python.org `__. When installing, make sure to add Python to your PATH (otherwise you will get an error that the command "python" is not found). Step 2: Install oTree ^^^^^^^^^^^^^^^^^^^^^ Create a folder where you will store your oTree projects. Then open PowerShell (on Windows) or Terminal (on Mac) to that folder. Enter this command at the prompt:: pip3 install otree --upgrade Step 3: Program your apps ^^^^^^^^^^^^^^^^^^^^^^^^^ The fastest way to build your games is to use `OTAI `__, the oTree AI Builder. You build your games through an AI chat, no coding required. Running the server ^^^^^^^^^^^^^^^^^^ Once you have a project, start the server on your computer with ``otree devserver`` or (if using oTree Studio) ``otree zipserver``. Open your browser to `http://localhost:8000/ `__. You should see the oTree demo site. Using a text editor ^^^^^^^^^^^^^^^^^^^ Use ``otree startproject `` to create a new project. Use ``otree startapp `` to create a new app.