Hi, i'm new to linux, i've tried to install the pr...
# ask-community
s
Hi, i'm new to linux, i've tried to install the prefect using "uv pip install -U prefect" it looks like it installed but when i run "prefect version" i just get "prefect: command not found" do i need to do any other steps to get it to work, i was just following - https://docs.prefect.io/v3/get-started/install
n
hi @Steven Snowball perhaps you have not activated your virtual environment?
Copy code
source .venv/bin/activate
we should probably update
uv pip
usage (the pip compat interface) in the docs to suggest
uv add
instead
s
do i have to create a virtual env in a folder first?
n
typically if you're using
uv
, you'd do
uv venv
(creates
.venv/
in your working directory) and then the
source
command above but prefect doesn't care whether you use
uv
or
pip
, whatever way you install the
prefect
executable is fine
s
ah okay, so create the venv, activate the environment and then uv install and then version
2 tics i'll try
i think it's worked
thanks
n
sure thing, added a small note here for clarity
s
👍