You need a basic understanding of your operating system’s command prompt. You should know common commands like ls, cd, and mv, and how to launch a program by entering its name at the command prompt. Here is how to open your command prompt.
You will write your pTree apps in Python.
Python is an easy-to-learn yet powerful and versatile programming language. It is very popular and has a great ecosystem of tutorials, libraries, and tools.
You will need a program called Pip in order to install packages.
Download ez_setup.py, then run the following command with administrator privileges (on Windows, right-click the Windows PowerShell app icon, then click “Run as administrator”.):
python ez_setup.py
Then, download get-pip.py, and run it (again with administrator privileges) as follows:
python get-pip.py
To verify that it is correctly installed, try the command pip install requests from your command line.
Install PyCharm.
I recommend installing the free 30-day trial of the Professional Edition, since it has features that make Django development much easier, and thus ease the learning curve of pTree.
After 30 days, you can either get a free Classroom License (as explained here), or downgrade to the free Community Edition, or buy an Academic License for $29.
Note
You can use any Python editor you want, but this documentation gives instructions assuming you are using PyCharm,
You must have intermediate knowledge of Python to use pTree. You should at least understand the basics of procedural and object-oriented programming: control structures (e.g., if, while, for), data structures (lists, hashes/dictionaries), variables, classes and objects.
If you have programmed before in another programming language like Java, C#, C++, or Ruby, Python will be very easy for you to pick up. Experience with scientific languages like R, Matlab, or Stata can also help, but there will be more new concepts to learn.
If you need to learn Python, there are many good tutorials on the web you can choose from, such as: