Skip to content

Instantly share code, notes, and snippets.

@ckunte
Created November 8, 2025 04:27
Show Gist options
  • Select an option

  • Save ckunte/57023d5362604eb012c4dce55134f4a9 to your computer and use it in GitHub Desktop.

Select an option

Save ckunte/57023d5362604eb012c4dce55134f4a9 to your computer and use it in GitHub Desktop.
Setting python up the easy way in Windows 11

Setting python up the easy way in Windows 11

  1. Install uv — a python package and project manager

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

    Restart PowerShell for the path to uv to reload and be accessible from the command line.

  2. Install python

    uv python install
  3. Initialise project folder and install modules required by the project

    uv init
    uv add numpy matplotlib pandas

    uv project manages python version and the packages required for the project.

  4. Run a script

    uv run somescript.py

    Python via uv is now setup to run scripts from command line. (See also some helpful guides.)

  5. Set it up to run from within a text editor, say, Sublime Text

    From Tools > Build System, choose New Build System.., and in the opened tab/window, paste the following:

    {
        "shell_cmd" : "uv run \"$file_name\"",
        "selector" : "source.python",
        "path" : "C\\Users\\ckun\\.local\\bin;$path",
        "working_dir" : "$file_path"
    }

    Be sure to change the path in the above to reflect your own Windows username in lieu of ckun. Save the file as Python-uv.sublime-build. Now with a python script in the editor, select Python-uv from Tools > Build System, and hit Ctrl B to run the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment