First Time Setup
Note
If you are new to Python or programming, and these concepts are unfamiliar to you, remember that online alternatives which require no installation are available, such as Google Colab. See the Using Online Platforms guide for more details.
stratapy uses the Python programming language, so you will need to have Python installed on your computer before you can use stratapy. The panel below provides step-by-step instructions on how to install Python, depending on your operating system (Windows, MacOS, Linux). Follow the instructions carefully to set up your Python environment.
On Windows, you can install Python either through the Windows Store or by downloading it directly from the official Python website.
To use the Windows Store:
Open the Microsoft Store app on your computer.
Search for “Python” in the search bar.
Select the latest version of Python (e.g., Python 3.13) from the search results.
Click the “Get” or “Install” button to download and install Python.
To download from the official website:
Go to the official Python website: https://www.python.org/downloads/windows/
Click on the latest Python version for Windows to download the installer.
Run the downloaded installer. Make sure to check the box that says “Add Python to PATH” before clicking “Install Now”.
Follow the prompts to complete the installation.
On MacOS, you can install Python using the Homebrew package manager or by downloading it directly from the official Python website.
To use Homebrew:
Open the Terminal application on your Mac.
If you don’t have Homebrew installed, you can install it by running the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Once Homebrew is installed, run the following command to install Python:
brew install python
To download from the official website:
Go to the official Python website: https://www.python.org/downloads/macos/
Click on the latest Python version for MacOS to download the installer.
Run the downloaded installer and follow the prompts to complete the installation.
On Linux, you can install Python using your distribution’s package manager.
For Debian-based distributions (like Ubuntu):
Open the Terminal application.
Run the following command to update your package list:
sudo apt updateInstall Python by running:
sudo apt install python3
For Red Hat-based distributions (like Fedora):
Open the Terminal application.
Run the following command to install Python:
sudo dnf install python3
For Arch Linux:
Open the Terminal application.
Run the following command to install Python:
sudo pacman -S python
Once you have installed Python, you can verify the installation by opening a terminal or command prompt and typing:
python --version
This should display the version of Python that you have installed. You are now ready to proceed with installing stratapy and its dependencies.
Tip
Instead of running Python code through the terminal, you can also use an Integrated Development Environment (IDE) for a more user-friendly experience. For beginners, we recommend using Visual Studio Code (VS Code), developed by Microsoft. For example, it enables the use of Jupyter Notebooks, which are interactive coding environments that allow you to write and execute code in a more visual way. This documentation includes examples using Jupyter Notebooks, which can be run directly within VS Code.
Instructions for installing VS Code can be found on their website at https://code.visualstudio.com/docs/setup/setup-overview.