Project

General

Profile

DevelopersPython3Environment » History » Version 1

Dan Smith, 12/10/2022 05:26 AM

1 1 Dan Smith
# Python 3 Developer Environment Setup
2
3
## Windows
4
5
### Install Python
6
1. Download and install from [python.org](https://www.python.org/downloads/windows/). At the time of this writing, "Python 3.10.8" is recommended. During install note these options:
7
  1. Choose *Add python.exe to PATH*
8
  1. Choose *Disable path length limit*
9
1. In Windows settings, search "Manage app execution aliases" and:
10
  1. Disable *App Installer: python.exe*
11
  1. Disable *App Installer: python3.exe*
12
  1. Disable *App Installer: python3.7.exe*
13
1. Browse in explorer to `%AppData%\Local\Programs\Python\Python310` and copy `python.exe` to `python3.exe`
14
15
### Install Git
16
1. Download and install from [git-scm.org](https://git-scm.com/download/win). During installation take the defaults except for:
17
  1. Configuring the line ending conversions: choose *Checkout as-is, commit Unix-style line endings*
18
19
### Configure Git
20
From a command line:
21
1. `git config --global user.name "FIRST_NAME LAST_NAME"`
22
1. `git config --global user.email "MY_NAME@example.com"`
23
1. Optional, if you want to set an editor: `git config --global core.editor "PATH TO EDITOR"
24
      
25
26
### Clone the chirp git repository (py3 branch)
27
From a command line:
28
```
29
C:\Users\{user}\Documents> git clone https://github.com/kk7ds/chirp
30
C:\Users\{user}\Documents> cd chirp
31
C:\Users\{user}\Documents> git checkout origin/py3 -b py3
32
```
33
34
### Install the python dependencies
35
1. `python3 -mpip install -r requirements.txt`
36
1. `python3 -mpip install tox`
37
38
39
### Optional, but recommended: Install GitHub CLI
40
Via winget: `winget install --id GitHub.cli` or manually from [github.com](https://cli.github.com/)
41
42
Note: {user} as shown in paths above is the logged in Windows user
43
Note: The steps above were done on Windows 10 Pro, version 22H2