3.5. Installing Development Tools
Table of Contents
Why Development Tools Matter
Before you write any backend code, you need a set of tools installed on your machine. These tools help you:
- Write code comfortably
- Run and test your applications
- Manage dependencies and versions
- Collaborate with others
In this chapter you will learn what to install and how to install it, with examples on Windows, macOS, and Linux. Later chapters will explain how to use each tool in depth, so here you focus on getting a solid, working setup.
Core Categories of Development Tools
For backend development, you usually need at least:
| Category | Examples | Purpose |
|---|---|---|
| Programming language | Python | Execute your backend logic |
| Package manager | pip | Install third party libraries |
| Version control | Git | Track changes, collaborate |
| Editor / IDE | VS Code, PyCharm | Write and navigate code |
| Terminal / Shell | PowerShell, Command Prompt, Bash, zsh | Run commands and tools |
| Database tools | psql (PostgreSQL), pgAdmin, DBeaver | Work with databases |
| Container tools | Docker Desktop, Docker Engine | Run apps in containers (later stages) |
You do not need all advanced tools on day one, but having the basics ready prevents frustration later.
General Installation Principles
Use Official Sources
Always download tools from their official websites or your operating system’s package manager.
Important rule
Only install development tools from trusted, official sources, such as:
- The official project website
- Your OS package manager (apt, dnf, pacman, Homebrew, etc)
- Trusted app stores (Microsoft Store, Apple App Store)
This reduces the risk of malware and inconsistent builds.
Examples of official sources:
- Python: https://www.python.org
- Git: https://git-scm.com
- VS Code: https://code.visualstudio.com
On Linux, using your distribution’s package manager is usually the best approach.
Prefer Command Line Installation When Possible
If you feel comfortable with the terminal, use it to install tools. It is:
- Easier to document and repeat
- Easier to automate later
- Clearer for troubleshooting
Example on Ubuntu:
sudo apt update
sudo apt install git python3 python3-pipExample on macOS with Homebrew:
brew install git pythonIf you are a complete beginner, it is fine to start with graphical installers and gradually move to command line.
Installing Tools on Windows
1. Installing a Terminal Environment
You will use the terminal a lot as a backend developer.
Windows Terminal
- Open Microsoft Store.
- Search for Windows Terminal.
- Click Get or Install.
Windows Terminal lets you open multiple shells, such as:
- PowerShell
- Command Prompt
- WSL (if installed)
Optional: Windows Subsystem for Linux (WSL)
WSL gives you a Linux environment inside Windows, which is very close to typical server environments.
To install WSL (Windows 10/11):
- Open PowerShell as Administrator.
- Run:
wsl --install- Restart your computer if asked.
- Choose a Linux distribution, for example Ubuntu, and set a username and password.
Later, you will be able to open Ubuntu inside Windows Terminal and use Linux commands.
2. Installing Python on Windows
- Go to https://www.python.org/downloads/windows/
- Download the latest stable Python 3.x installer (64-bit).
- Run the installer.
- On the first screen, check:
- Add Python 3.x to PATH (very important)
- Click Install Now and follow the prompts.
Verify Python installation
Open PowerShell or Command Prompt and run:
python --versionYou should see something like:
Python 3.12.1
If python does not work, try:
py --version
If that works, you can run Python scripts using py instead of python.
pip on Windows
pip is usually installed together with Python. Check with:
pip --versionIf this does not work, try:
py -m pip --version
Later, you will use pip to install backend libraries such as FastAPI and SQLAlchemy.
3. Installing Git on Windows
- Go to https://git-scm.com/download/win
- Download the installer.
- Run it and keep the defaults unless you know what you are doing.
- When asked about the default editor, you can choose Use Visual Studio Code as Git’s default editor if you will use VS Code.
- When asked about PATH, select Git from the command line and also from 3rd-party software.
Verify Git installation
Open PowerShell and run:
git --versionExpected output:
git version 2.45.0.windows.14. Installing a Code Editor on Windows
Visual Studio Code (recommended)
- Go to https://code.visualstudio.com/
- Download User Installer for Windows.
- Run the installer.
- Optionally check:
- Add "Open with Code" action to Windows Explorer file context menu
- Add "Open with Code" action to Windows Explorer directory context menu
- Finish installation.
Install useful VS Code extensions
Open VS Code, go to the Extensions panel, and search for:
- Python (by Microsoft)
- Pylance (if not included)
- GitLens (for Git enhancements)
- Docker (later when you start using Docker)
These will help autocompletion, linting, and Git integration.
5. Optional: Installing Database Tools on Windows
PostgreSQL
For backend work you often use PostgreSQL.
- Go to https://www.postgresql.org/download/windows/
- Click Download the installer.
- Choose the latest version and run the installer.
- Note the password you set for the
postgresuser. - Optionally install pgAdmin (checked by default), which is a graphical tool for working with PostgreSQL.
Verify with:
psql --version
If psql is not found, you may need to:
- Add PostgreSQL’s
bindirectory to your PATH, or - Use the full path, for example:
& "C:\Program Files\PostgreSQL\16\bin\psql.exe" --version
Installing Tools on macOS
1. Installing a Terminal Environment
macOS includes the Terminal app by default.
- Open Launchpad
- Search for Terminal
- Open it
Many backend developers on macOS install iTerm2 for a better experience, but the built-in Terminal is fine.
2. Installing Homebrew (recommended)
Homebrew is a package manager for macOS and makes installing tools simple.
Open Terminal and run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Follow the instructions. At the end, it will show commands to add Homebrew to your PATH. Run those commands.
Verify with:
brew --version3. Installing Python on macOS
macOS might come with a system Python. You should install your own Python 3 version.
With Homebrew:
brew install pythonVerify:
python3 --versionYou should see something like:
Python 3.12.1
You will usually use python3 instead of python on macOS.
pip is installed together with Python, use:
pip3 --version4. Installing Git on macOS
Git may already be available through Xcode Command Line Tools. Check:
git --versionIf it asks to install command line tools, accept. Or install Git via Homebrew:
brew install gitVerify again:
git --version5. Installing a Code Editor on macOS
Visual Studio Code
- Go to https://code.visualstudio.com/
- Download the macOS version.
- Open the downloaded
.zipand drag Visual Studio Code.app to the Applications folder.
Add the code command (optional but useful):
- Open VS Code.
- Open the Command Palette (View → Command Palette, or
Cmd + Shift + P). - Search for Shell Command: Install 'code' command in PATH and run it.
You can now open a folder from the terminal:
code my-projectInstall the same extensions as described in the Windows section (Python, GitLens, Docker, etc).
6. Optional: Installing PostgreSQL on macOS
With Homebrew:
brew install postgresqlStart the service:
brew services start postgresqlVerify:
psql --versionYou can also use graphical tools like pgAdmin or DBeaver if you prefer a GUI.
Installing Tools on Linux
Linux distributions differ slightly, but the basic approach is the same. Here are examples for Ubuntu or Debian based systems.
1. Updating Package Lists
Always update your package list first:
sudo apt update
On other distributions, you might use dnf, yum, or pacman instead.
2. Installing Python on Linux
Most distributions have Python 3 installed. Check with:
python3 --versionIf missing or outdated, install:
sudo apt install python3 python3-pipVerify:
python3 --version
pip3 --version
Later, you might use tools like pyenv to manage multiple Python versions, but for now the system Python is usually enough.
3. Installing Git on Linux
On Debian / Ubuntu:
sudo apt install gitVerify:
git --versionOn Fedora:
sudo dnf install gitOn Arch:
sudo pacman -S git4. Installing a Code Editor on Linux
Visual Studio Code
Using Microsoft’s repository on Ubuntu:
sudo apt update
sudo apt install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
sudo apt update
sudo apt install code
After that, you can run code from the terminal.
Or download the .deb or .rpm package directly from the VS Code website and install it with your package manager.
Install the same extensions as before (Python, GitLens, Docker, etc).
5. Optional: Installing PostgreSQL on Linux
On Ubuntu / Debian:
sudo apt install postgresql postgresql-contribCheck status:
sudo systemctl status postgresqlVerify version:
psql --versionOn other distributions, use their package manager with the appropriate package names.
Checking and Managing PATH
Many installation problems come from tools not being in your PATH. The PATH is an environment variable that tells your system where to look for executable programs.
You can see your PATH:
- Windows (PowerShell):
echo $Env:PATH- macOS / Linux:
echo $PATH
If a command like python or git is installed but not found, your PATH may not include the directory where it was installed.
Important rule
If a tool is installed but the command is "not found", check:
- Is it actually installed?
- Where is the executable located?
- Is that directory included in your PATH?
You must not blindly download the same tool multiple times before checking PATH. That often creates more confusion.
Examples:
- On Windows, if Python is installed but
pythonis not found, you may need to reinstall with Add Python to PATH checked. - On Linux, you might need to add a directory like
$HOME/.local/binto your PATH in.bashrcor.zshrc.
Verifying Your Setup With a Simple Project
After installing tools, create a tiny test to confirm everything works.
1. Create a project folder
Windows (PowerShell):
mkdir backend-test
cd backend-testmacOS / Linux:
mkdir backend-test
cd backend-test2. Initialize Git
git initYou should see:
Initialized empty Git repository in ...3. Create a simple Python file
Create a file hello.py with this content:
def main():
print("Hello, backend world!")
if __name__ == "__main__":
main()4. Run the Python file
- Windows (if
pythonworks):
python hello.py
or if you use py:
py hello.py- macOS / Linux:
python3 hello.pyYou should see:
Hello, backend world!5. Commit the file with Git
git add hello.py
git commit -m "Add hello backend script"If this works without errors, then:
- Python is installed and works
- Git is installed and works
- Your editor can open the folder and files
You now have a basic but functional development environment.
Common Installation Problems and How to Approach Them
Here are some typical issues beginners hit and how to think about solving them.
| Problem | Likely Cause | First Steps |
|---|---|---|
python not recognized | Not installed or not in PATH | Check installation, try py or python3 |
pip not found | Different name or PATH issue | Try py -m pip, python3 -m pip |
| Git not recognized | Git not installed or PATH issue | Run git --version, reinstall from official source |
VS Code code command not found | PATH setup missing | Use built-in "Install 'code' command in PATH" feature |
| Permission denied errors on Linux/macOS | Missing sudo or incorrect permissions | Read the error carefully, add sudo only when needed |
| PostgreSQL commands not found | PostgreSQL’s bin directory not in PATH | Find install path, add to PATH, or use full path |
Whenever you encounter issues, do the following:
- Read the entire error message, do not just glance at the first line.
- Copy the error message into a search engine, including your OS and tool name.
- Prefer answers from official documentation or high quality sources.
What You Should Have Ready After This Chapter
By the end of this chapter you should have:
- A working terminal or shell environment on your OS
- Python 3 installed and accessible from the command line
pipavailable for managing Python packages- Git installed and working
- A code editor such as VS Code with Python support enabled
- (Optional, but recommended) PostgreSQL installed with
psqlavailable
You do not need everything perfectly tuned. The goal is to be able to:
- Open a folder in your editor
- Run a Python script from the terminal
- Track files with Git
In later chapters, you will refine this environment with virtual environments, better configurations, and additional tools.
Views: 7
KAHIBARO