Here's a quick overview to installing pandas on windows:
We will follow these steps:
- Install uv (if you haven't already).
- Create a virtual environment using uv.
- Activate the virtual environment.
- Install pandas into the environment using uv.
1. Install uv (If Needed)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
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
You should see output similar to: Creating virtual environment at: .venv
3. Activate the Virtual Environment
- For PowerShell:
.venv\Scripts\Activate.ps1
- For Command Prompt (cmd.exe):
.venv\Scripts\activate
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
Top comments (4)
love that uv has become the de facto package manager now for π
I hear people are starting to use uv so as a beginner I'm joining the club already :D
Thank you for writing this useful article. ππ½β¨οΈ
Good job! π₯