Project

General

Profile

Actions

DevelopersPython3Environment » History » Revision 1

Revision 1/21 | Next »
Dan Smith, 12/10/2022 05:26 AM


Python 3 Developer Environment Setup

Windows

Install Python

  1. Download and install from python.org. At the time of this writing, "Python 3.10.8" is recommended. During install note these options:
    1. Choose Add python.exe to PATH
    2. Choose Disable path length limit
  2. In Windows settings, search "Manage app execution aliases" and:
    1. Disable App Installer: python.exe
    2. Disable App Installer: python3.exe
    3. Disable App Installer: python3.7.exe
  3. Browse in explorer to %AppData%\Local\Programs\Python\Python310 and copy python.exe to python3.exe

Install Git

  1. Download and install from git-scm.org. During installation take the defaults except for:
    1. Configuring the line ending conversions: choose Checkout as-is, commit Unix-style line endings

Configure Git

From a command line:

  1. git config --global user.name "FIRST_NAME LAST_NAME"
  2. git config --global user.email "MY_NAME@example.com"
  3. Optional, if you want to set an editor: `git config --global core.editor "PATH TO EDITOR"

Clone the chirp git repository (py3 branch)

From a command line:

C:\Users\{user}\Documents> git clone https://github.com/kk7ds/chirp
C:\Users\{user}\Documents> cd chirp
C:\Users\{user}\Documents> git checkout origin/py3 -b py3

Install the python dependencies

  1. python3 -mpip install -r requirements.txt
  2. python3 -mpip install tox

Optional, but recommended: Install GitHub CLI

Via winget: winget install --id GitHub.cli or manually from github.com

Note: {user} as shown in paths above is the logged in Windows user
Note: The steps above were done on Windows 10 Pro, version 22H2

Updated by Dan Smith about 2 years ago · 1 revisions