Skip to content

uv venv is telling me to use source on powershell for Linux #17869

@Avasam

Description

@Avasam

Summary

  1. Open powershell on a Linux machine (see https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-linux)
  2. Run uv venv
PS > uv venv --python=3.11                                 
Using CPython 3.11.14
Creating virtual environment at: .venv
✔ A virtual environment already exists at `.venv`. Do you want to replace it? · yes
Activate with: source .venv/bin/activate
PS > source .venv/bin/activate             
source: The term 'source' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS > .venv/bin/activate.ps1
# Worked
Image

Platform

Linux 6.17.0-12-generic x86_64 GNU/Linux (Kubuntu 25.10)

Version

uv 0.9.27

Python version

Python 3.11.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions