From 3dac2f28636420ec0290d36fb916708c31f65c2a Mon Sep 17 00:00:00 2001 From: glopesdev Date: Tue, 5 Mar 2024 21:17:35 +0000 Subject: [PATCH] Add instructions for installing Linux python --- docs/index.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index c90101b..6c582be 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,14 +6,30 @@ You can use the Python Scripting package to run native Python scripts, import an ## How to install -1. Download [Bonsai](https://bonsai-rx.org/). +1. Install [Bonsai](https://bonsai-rx.org/). 2. From the package manager, search and install the **Bonsai - Python Scripting** package. -## Create a Python environment +## Install Python + +In addition to the Python Scripting package you need to have a version of [Python](https://www.python.org/) installed in your system. Below are suggested installation steps for Windows and Linux. + +# [Windows](#tab/windows) + +Download and install the latest [Python distribution](https://www.python.org/downloads/). + +# [Linux](#tab/linux) -In addition to the Python Scripting package you need to have a version of [Python](https://www.python.org/) installed in your system. We recommend installing the official distributions and using `venv` to create virtual environments to run your specific projects. +Run the following commands to install the latest stable Python for your operating system: + +```bash +sudo apt install python3 +sudo apt install libpython3-dev +``` +--- + +## Create a Python environment -To create a virtual environment you can run the following command from inside the folder where you want to install the environment: +We recommend using the `venv` tool to create virtual environments for running your specific projects. To create a virtual environment you can run the following command from inside the folder where you want to install the environment: ```ps python -m venv .venv