-
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.
-
Install python
uv python install
-
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.
-
Run a script
uv run somescript.py
Python via uv is now setup to run scripts from command line. (See also some helpful guides.)
-
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
pathin the above to reflect your own Windows username in lieu ofckun. Save the file asPython-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.
Created
November 8, 2025 04:27
-
-
Save ckunte/57023d5362604eb012c4dce55134f4a9 to your computer and use it in GitHub Desktop.
Setting python up the easy way in Windows 11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment