Run Conda commands in Windows Powershell


Learn how to run conda commands directly in Windows PowerShell, enhancing your workflow efficiency. By default, Windows PowerShell doesn’t support Conda commands, which can be frustrating when working with Jupyter Lab or other Python development tools.

Step-by-Step Guide

1. Initialize Conda for PowerShell
– Open Anaconda Prompt
– Run the following command:

conda init powershell

– Wait for the initialization to complete

2. Update PowerShell Execution Policy
– Open PowerShell
– Run the following command:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

– This allows signed scripts to run on your system

3. Verify the Setup
– Restart PowerShell
– You’ll notice it takes slightly longer to load initially
– The base environment should be automatically activated
– Test by running a simple Conda command

Benefits

After completing these steps, you can:
– Run Conda commands directly from PowerShell
– Install environments from within Jupyter Lab’s terminal
– Manage Python environments without switching to Anaconda Prompt
– Streamline your development workflow


This tutorial is part of our Python development workflow series. Visit Training Scientists for more practical Python tutorials and tips.

Share:

More Posts

Send Us A Message

Scroll to Top