Install Python, Miniconda, and create an environment env001 using PowerShell.
Due to PowerShell's execution policy, due to a security feature in Windows, which prevents scripts from running, and don t allow Conda to function properly, we need follow these steps:
Step 0: Allow Script Execution
Run this command in PowerShell to change the execution policy:
powershellCopy codeSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Explanation:
CurrentUser
: Only applies the policy for your user account.RemoteSigned
: Allows locally-created scripts to run without a digital signature.Here’s a concise step-by-step guide to install Python, Miniconda, and create an environmentenv001
using PowerShell:
Restart shell.
Step 1: Install Python via shell or via GUI.
Restart shell.
Start-Process -FilePath "C:\Users\user001\Downloads\python\python-3.13.0-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1" -Wait
Step 2: Verify Python Installation.
python --version
Step 3: Install Miniconda via shell or via GUI.
Restart shell.
Start-Process -FilePath "C:\Users\user001\Downloads\python\Miniconda3-latest-Windows-x86_64.exe" -ArgumentList "/InstallationType=JustMe /AddToPath=1 /S /D=C:\Miniconda3" -Wait
Step 4: Initialize Conda in PowerShell.
Restart shell.
& "C:\Miniconda3\Scripts\conda.exe" init powershell
Restart your PowerShell terminal for the changes to take effect.
Step 5: Verify Conda Installation
conda --version
Step 6: Create Environment env001
conda create -n env001 python=3.13 -y
Step 7: Activate the Environment
conda activate env001
You are now ready to use Python 3.13 in your env001
Conda environment!