Skip to content

Commit 78c7edf

Browse files
if uv is installed, why use pip
1 parent 1b488b6 commit 78c7edf

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

docs/installation.mdx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ Before installing CrewAI, it's recommended to set up a virtual environment. This
2323
<Step title="Create a Virtual Environment">
2424
Choose your preferred method to create a virtual environment:
2525

26-
**Using venv (Python's built-in tool):**
26+
**Using uv (Recommended)**
27+
```
28+
# skip this step. uv has a global venv for tools
29+
```
30+
31+
**Using traditional venv (Python's built-in tool):**
2732
```shell Terminal
2833
python3 -m venv .venv
2934
```
@@ -61,6 +66,11 @@ Now let's get you set up! 🚀
6166
<Steps>
6267
<Step title="Install CrewAI">
6368
Install CrewAI with all recommended tools using either method:
69+
70+
```shell Terminal
71+
uv tool install crewai[tools]
72+
```
73+
6474
```shell Terminal
6575
pip install 'crewai[tools]'
6676
```
@@ -75,7 +85,13 @@ Now let's get you set up! 🚀
7585
</Step>
7686

7787
<Step title="Upgrade CrewAI (Existing Installations Only)">
88+
7889
If you have an older version of CrewAI installed, you can upgrade it:
90+
91+
```shell Terminal
92+
uv tool upgrade crewai[tools]
93+
```
94+
7995
```shell Terminal
8096
pip install --upgrade crewai crewai-tools
8197
```
@@ -95,6 +111,10 @@ Now let's get you set up! 🚀
95111

96112
<Step title="Verify Installation">
97113
Check your installed versions:
114+
```
115+
uv tool list
116+
```
117+
98118
```shell Terminal
99119
pip freeze | grep crewai
100120
```
@@ -116,9 +136,11 @@ Now let's get you set up! 🚀
116136

117137
<Steps>
118138
<Step title="Generate Project Structure">
119-
Run the CrewAI CLI command:
139+
Run the CrewAI CLI command with pip or uv:
140+
120141
```shell Terminal
121142
crewai create crew <project_name>
143+
122144
```
123145

124146
This creates a new project with the following structure:

0 commit comments

Comments
 (0)