> For the complete documentation index, see [llms.txt](https://ankit-apdc.gitbook.io/python-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ankit-apdc.gitbook.io/python-1/installation-and-setup.md).

# Installation and Setup

## Installation Overview

There are three options to start working on python coding

1. Use the online editor (Google Collab or online Jupyter Notebook)
2. Using docker image of Jupyter Notebook
3. Install Jupyter Notebook in local

Jupyter Notebook is good for testing only, application needs to be created using a text editor (Visual Studio Code is my preferred text editor)

{% hint style="info" %}
**Hint**: Best practice to use a virtual environment while working with applications in local
{% endhint %}

## Creating a Python Virtual Environment

* Discussing for Linux or Ubuntu like operating systems only
* Create virtual environment (For 3.7 version and virtual environment name myenv)

```bash
sudo apt-get install python-virtualenv
virtualenv --python=python3.7 myvenv
```

activate virtual env

```bash
source myvenv/bin/activate
```

Now, use this virtual environment for running all python related code (as an application or initiating Jupyter Notebook and working with it)
