Table of Contents
- Objective
- Rumos support team
- Python Installation
- PATH Configuration Troubleshooting
- Package Management with pip
- Visual Studio Code Installation
- VS Code Extensions
- Running Python Scripts
- Running Jupyter Notebooks in VS Code
- Environment Verification Checklist
- Using ‘uv’
Objective
This document outlines the required setup steps for participants attending Python Master Classes in controlled environments such as Government, Finance, Military, etc.
Rumos support team
- +351 217 824 100 (key #4) [08h30 - 19h00]
- suporte.tecnico@training.rumos.pt [SLA < 24h]
Python Installation from python.org
SKIP to chapter "Package Management with pip" if you are downloading Python from Company software center
- Minimum version: Python 3.11
- Recommended version: Python 3.14+
- Download and install from python.org or use an approved internal installer
- During installation, ensure “Add Python to PATH” is checked
- Prefer
Customize installationto install only necessary components




- Verify installation by running on a powershell:
python --version
If the checkbox
Add Python to environment variablesis not selected, or if installing from a local software center does not provide this option, manually add Python to yourPATH. See the next section.
PATH Configuration Troubleshooting
Skip this section if the
python --versioncommand worked successfully.
Verify Python on PATH
Ensure the python command is accessible from all terminals/PowerShell sessions by checking the PATH variable. Open PowerShell and type:
$env:path

Manually Add Python to PATH
Find where Python is installed.



Edit Environment Variables for Your Account
Open the environment variable editor.

Ensure the Python and Python Scripts directories are included in your PATH.

Typical location: C:\Users\<username>\AppData\Local\Programs\Python\Python3x\Scripts
Verify the scripts path by running in PowerShell:
pip --version

Package Management with pip
Configure pip for corporate/proxy environments
- If behind a proxy or using an internal Artifactory repository, configure
pip.ini: - Windows:
c:\users\<username>\pip\pip.ini
Example pip.ini for Artifactory:
[global]
index-url = https://artifactory.example.com/api/pypi/pypi/simple
trusted-host = artifactory.example.comExample pip.ini for proxy:
[global]
proxy = http://proxy.example.com:8080
trusted-host = pypi.orgTest pip installation
- Run:
pip config list
pip install --dry-run requests
If blocked, verify your proxy or Artifactory configuration, or consult internal recommendations.
Install Common Packages
# Verify empty environment
pip freeze
pip install numpy pandas matplotlib ipykernel pylance
# Verify installations
pip freeze
(...)
parso==0.8.7
pillow==12.3.0
platformdirs==4.11.5
prompt_toolkit==3.0.53
psutil==7.2.2
pure_eval==0.2.3
Pygments==2.21.0
pyparsing==3.3.2
python-dateutil==2.9.0.post0
pyzmq==27.2.0
six==1.17.0
stack-data==0.6.3
tornado==6.5.8
traitlets==5.16.1
typing_extensions==4.16.0
tzdata==2026.3
wcwidth==0.8.3
(...)
After installation,
pipmay suggest adding a newscriptsfolder to yourPATH. Proceed as suggested.
Visual Studio Code Installation
- Download and install from code.visualstudio.com or from your local software repository.
- Ensure the installer is approved by your IT department.
- Verify installation by launching VS Code

VS Code Extensions
Install the following extensions from VS Code Marketplace:
| Extension | Purpose |
|---|---|
| Python | Python language support, IntelliSense, linting, debugging |
| Jupyter | Jupyter notebook support within VS Code |

Install Extensions via Command Line (if marketplace fails)
If a proxy is blocking installations, you can still install extensions manually. Obtain extensions from the VS Code Marketplace or from a VS Code installation with direct internet access.

Open PowerShell and install the VSIX file downloaded from a VS Code installation with direct internet access:
code --install-extension ms-python.python
code --install-extension ms-toolsai.jupyter
code --install-extension ms-python.vscode-pylanceRunning Python Scripts
In VS Code, go to File >> Open Folder and create/open an empty folder.

- Create a simple test script (
test.py):print("Hello, World!")

Running Jupyter Notebooks in VS Code
- Ensure the Jupyter extension is installed (see Section 5).
- Create a simple test notebook (
test.ipynb):
print("Hello, World!")- Open the notebook in VS Code
- Run the cell and verify output
- Ensure the kernel is available (select Python 3.x kernel).

Environment Verification Checklist
| Step | Command / Action | Expected Result |
|---|---|---|
| Python installed | python --version | Python 3.11+ |
| Scripts on PATH | pip --version | pip version info |
| pip working | pip install requests | Successful install |
| uv installed | uv --version | Version info |
| Virtual environment | uv venv | .venv folder created |
| venv packages | uv pip list | Installed packages listed |
| VS Code installed | code --version | Version info |
| Python extension | code --list-extensions | ms-python.python |
| Jupyter extension | code --list-extensions | ms-toolsai.jupyter |
| Script execution | python test.py | Output is printed |
| Notebook execution | Open test.ipynb in VS Code | Cells run successfully |
Note: All installations and configurations must comply with your organization’s IT security policies. Consult your IT department before installing any software or configuring network settings.
Using ‘uv’ (optional)
uv is a modern, single-binary replacement for pip + venv (and more). It is 10–100× faster than pip, manages Python versions itself, and needs no admin rights — which makes it a good fit for controlled environments.
Why uv
| pip + venv | uv |
|---|---|
Separate tools (python -m venv, pip) | One binary, one command style (uv venv, uv pip) |
| Slow dependency resolution | Parallel downloads, 10–100× faster |
| Uses whatever Python is on PATH | Can install and manage Python versions |
| Manual activation required | Optional — uv run uses the project venv automatically |
Install uv (Windows and Linux)
Windows — PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Linux — any shell:
curl -LsSf https://astral.sh/uv/install.sh | shVerify in a new terminal (the installer updates PATH for new sessions):
uv --versionCorporate/proxy environments
The install scripts download from
astral.shand GitHub. If blocked, download the standalone binary for your platform from the uv releases page (or request it via your software center) and place it in a folder on yourPATH.
Create a virtual environment
From your project folder (the same one you open in VS Code):
# create the venv in a .venv folder
uv venv
# activate it
.venv\Scripts\Activate.ps1 # Windows PowerShell
source .venv/bin/activate # LinuxYour prompt now shows (.venv). uv venv uses the Python already on PATH; to pin a specific version — even one not installed system-wide — use uv venv --python 3.12 (uv downloads it automatically).
To leave the environment: deactivate.
Locked-down machines
uv downloads Python from GitHub when you use
--pythonwith a version that is not installed. If your organisation blocks this, drop the flag and use the approved python.org / software-center Python (see Python Installation from python.org).
Install packages into the venv
Same commands you already know from pip, just faster:
# with the venv activated
uv pip install numpy pandas matplotlib ipykernel
# verify
uv pip listWith no venv activated, prefix the command and uv finds .venv in the current folder by itself:
uv pip install --python .venv/bin/python requests # Linux
uv pip install --python .venv\Scripts\python.exe requests # WindowsUse the venv in VS Code
- Open the project folder (
File >> Open Folder). Ctrl+Shift+P→ Python: Select Interpreter.- Pick the interpreter inside
.venv— VS Code auto-detects it.
From now on, scripts and notebooks in that folder run against the venv; the Jupyter kernel picker offers it as well.
Project workflow (optional)
For a full dependency-managed project (with pyproject.toml and a lockfile):
uv init myproject # creates myproject/ with pyproject.toml
cd myproject
uv add requests # adds the dependency and installs it
uv run python test.py # runs inside the project venv — no activation neededuv run (and uv sync) always operate on the project’s own environment, so teammates reproduce the exact same package versions from the lockfile.