DEV Community

Cover image for Installing pandas with uv on windows
Nazanin Ashrafi
Nazanin Ashrafi

Posted on

Installing pandas with uv on windows

Here's a quick overview to installing pandas on windows:
We will follow these steps:

  1. Install uv (if you haven't already).
  2. Create a virtual environment using uv.
  3. Activate the virtual environment.
  4. Install pandas into the environment using uv.

1. Install uv (If Needed)

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Enter fullscreen mode Exit fullscreen mode

2. Create a Virtual Environment

# Replace 'my_project' with your desired folder name
mkdir my_project
cd my_project

# Create the virtual environment
uv venv
Enter fullscreen mode Exit fullscreen mode

You should see output similar to: Creating virtual environment at: .venv

3. Activate the Virtual Environment

  • For PowerShell:
.venv\Scripts\Activate.ps1
Enter fullscreen mode Exit fullscreen mode
  • For Command Prompt (cmd.exe):
.venv\Scripts\activate
Enter fullscreen mode Exit fullscreen mode

Once activated, your command line prompt will typically change to show the environment's name (e.g., (.venv) C:\Users\...).

4. Install pandas

Now, use uv's package management interface to install pandas into the active virtual environment.

uv pip install pandas
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
shahrouzlogs profile image
Shahrouz Nikseresht

Thank you for writing this useful article. 🙌🏽✨️