Skip to content

Commit

Permalink
Add instructions for installing Linux python
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Mar 5, 2024
1 parent 66cc520 commit 3dac2f2
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3dac2f2

Please sign in to comment.