Links...Start Here

Links...Start Here

Python 3.13.7 documentation


HOW TO INSTALL PYTHON:

You don’t necessarily need to change the path before running the `Invoke-WebRequest` command in PowerShell, but it depends on where you want the `python-installer.exe` file to be saved. Let me clarify:​

- **Default Behavior**: When you run `Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe" -OutFile "python-installer.exe"`, the `python-installer.exe` file will be saved in the **current working directory** of your PowerShell session. You can check your current directory by running:​

```powershell​

Get-Location​

```​

- **Changing the Path (Optional)**: If you want to save the installer to a specific directory (e.g., `C:\Downloads`), you should either:​

1. Change the directory first using:​

```powershell​

Set-Location -Path "C:\Downloads"​

```​

Then run the `Invoke-WebRequest` command.​

2. Or specify the full path in the `-OutFile` parameter:​

```powershell​

Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe" -OutFile "C:\Downloads\python-installer.exe"​

```​

IMPORANT...GO FIND THE INSTALLER YOU DOWNLOADED AND RUN IT AND UPDATE THE PATH VARIABLE CHECKBOX.



- **Important Notes**:​

- If you don’t change the path or specify a full path, the file will save in the directory where PowerShell is currently running (e.g., `C:\Users\YourUsername` if you opened PowerShell without changing directories).​

- Ensure the directory you’re saving to exists and you have write permissions there. If the directory doesn’t exist, you’ll need to create it first (e.g., `New-Item -ItemType Directory -Path "C:\Downloads"`).​

- When running the installer later (`Start-Process -FilePath ".\python-installer.exe" ...`), you’ll need to ensure the path to `python-installer.exe` is correct. If you saved it to a specific folder, update the `Start-Process` command to point to that location (e.g., `Start-Process -FilePath "C:\Downloads\python-installer.exe" ...`).​

**Example with Path Change**:​

```powershell​

# Change to a specific directory​

Set-Location -Path "C:\Downloads"​

# Download the installer​

Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe" -OutFile "python-installer.exe"​

# Run the installer​

Start-Process -FilePath ".\python-installer.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1" -Wait​

# Verify Python installation​

python --version​

```​

If you’re unsure about your current directory or want to ensure the file goes to a specific location, specifying the full path in `-OutFile` is the safest approach. Let me know if you need help with the next steps or run into issues!​

✅ Install Python with​

Run this in PowerShell:

Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.11.5/python-3.11.5-amd64.exe" -OutFile "python-installer.exe"

After install, close and reopen PowerShell, then verify:​

python --version<br>py --version

Start Powershell and type py.

PS C:\Users\openr\source\repos> py
Python 3.11.5 (tags/v3.11.5:cce6ba9, Aug 24 2023, 14:38:34) [MSC v.1936 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> See these three characters...means you are in the Python interactive interpreter session.

Python Frequently Asked Questions


Glossary

 
Last edited:
Back
Top