Skip to content

Commit 7496f2f

Browse files
authored
Merge pull request bonsai-rx#16 from glopesdev/linux-support
Add instructions for installing Linux python
2 parents 66cc520 + 3dac2f2 commit 7496f2f

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

docs/index.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,30 @@ You can use the Python Scripting package to run native Python scripts, import an
66

77
## How to install
88

9-
1. Download [Bonsai](https://bonsai-rx.org/).
9+
1. Install [Bonsai](https://bonsai-rx.org/).
1010
2. From the package manager, search and install the **Bonsai - Python Scripting** package.
1111

12-
## Create a Python environment
12+
## Install Python
13+
14+
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.
15+
16+
# [Windows](#tab/windows)
17+
18+
Download and install the latest [Python distribution](https://www.python.org/downloads/).
19+
20+
# [Linux](#tab/linux)
1321

14-
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.
22+
Run the following commands to install the latest stable Python for your operating system:
23+
24+
```bash
25+
sudo apt install python3
26+
sudo apt install libpython3-dev
27+
```
28+
---
29+
30+
## Create a Python environment
1531

16-
To create a virtual environment you can run the following command from inside the folder where you want to install the environment:
32+
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:
1733

1834
```ps
1935
python -m venv .venv

0 commit comments

Comments
 (0)