# Installation and preparation

<figure><img src="https://content.gitbook.com/content/h9puEqHZfqYUzc1yRE8w/blobs/WqDjcyOyWMEr5dgmV3FQ/image.png" alt=""><figcaption></figcaption></figure>

### 1. Installing Python on Windows 🖥️

Install from Python.org (Recommended)

{% stepper %}
{% step %}
**📌  Download Python**

&#x20;Access [Python Homepage](https://www.python.org/downloads/windows/)&#x20;

Click Download Python (Latest version)
{% endstep %}

{% step %}
**📌 Install Python**

Open the downloaded .exe file.

Click “Add Python to PATH”

Click "Install Now" and wait for the installation process to complete.
{% endstep %}

{% step %}
**📌** Verify installation

Open Command Prompt (CMD) and type:

```
python --version
```

{% endstep %}
{% endstepper %}

### 2. Install FiinQuant library. <a href="#cai-dat-thu-vien-fiinquant" id="cai-dat-thu-vien-fiinquant"></a>

```
pip install --extra-index-url https://fiinquant.github.io/fiinquantx/simple fiinquantx
```

Update library when a new version is available.

```
pip install --upgrade --extra-index-url https://fiinquant.github.io/fiinquantx/simple fiinquantx
```

Note: <mark style="color:red;">**DO NOT NAME YOUR PYTHON SCRIPT FILES THE SAME AS THE LIBRARY (i.e., FiinQuant).**</mark>\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fiinquant.vn/fiinquant-en/technical-document/installation-and-preparation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
