# Setup Python 3 on Windows

## Setup Windows 10 (if new machine)

* power on
* turn off cortana (the Microsoft Voice)
* skip sign in with Microsoft by clicking on Offline account then click No
* choose a name I chose testname and password (write down password)
* create security questions and answers all answers seattle
* decline to make cortana your personal assistant
* answer no to do more across devices with activity history
* accept privacy settings - they can be changed later

\-----> OS should boot up <-----

mouse error - ignore

## Install Python

### --> open Chrome browser and make it default browser

### We use package managers to install code because they help to make the code available to all users.

### Install Chocolatey which is a Windows Package Manager

#### Use command line to install

Windows button - type command - right click it and choose **Install as Administrator**

If you want to copy from a web page to command line you can use **CTRL-C** to copy and **CTRL-V** to paste

navigate to <https://chocolatey.org/install> and install chocolatey

You can test the chocolatey install by opening a new windows and typing `choco`

### Use Chocolatey to install Python, Pip and Pipenv

navigate to <https://docs.python-guide.org/starting/install3/win/>

`install python 3.7.2`

`python --version`

### run pip install to install Python's package manager

`python -m pip install -U pip`

Answer **Y** to any questions to install scripts

`pip —version 19.1.1`

### use pip to install

#### pipenv which is a way allow creation of multiple environments on one machine

<https://docs.python-guide.org/dev/virtualenvs/#virtualenvironments-ref>

`pip install --user pipenv`

## install git

<https://git-scm.com/book/en/v2/Getting-Started-Installing-Git>

Use this link to install on Windows - choose 64 bit version if asked

<https://git-scm.com/download/win>

once downloaded click on exe to install

## install Visual Studio Code

<https://code.visualstudio.com/download>

Choose 64bit version if asked

## create account on repl.it

This is a place to write, run and store code for free.

<https://repli.it>

## create an account on github.com

This is a place to store versioned code

<https://github.com/>

<https://chocolatey.org/packages/python/3.7.2>

reboot

make yourself admin

install visual studio

create an account


---

# 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://su-ncs.gitbook.io/introduction-to-programming/install-python-3-on-windows.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.
