# Error: Failed to spawn: \`run\_crew\` Caused by: No such file or directory (os error 2)

**URL:** <https://community.crewai.com/t/error-failed-to-spawn-run-crew-caused-by-no-such-file-or-directory-os-error-2/949>\
**Category:** CrewAI Community Support\
**Tags:** crewai\
**Created:** [October 22, 2024, 6:45pm UTC](https://community.crewai.com/t/error-failed-to-spawn-run-crew-caused-by-no-such-file-or-directory-os-error-2/949 "2024-10-22T18:45:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Csaba8472](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/csaba8472/32/112_2.png) [@Csaba8472](https://community.crewai.com/u/Csaba8472)\
**Post date:** [October 22, 2024, 6:45pm UTC](https://community.crewai.com/t/error-failed-to-spawn-run-crew-caused-by-no-such-file-or-directory-os-error-2/949/1 "2024-10-22T18:45:29Z")

</div>

I’ve created a new flow with crewai create flow then crewai run fails with the error above. I’ve tried on Sequoia and in a new docker container with python 3.11.10 and crewai 0.74.2.

this only happens with uv, doesn’t happen with poetry

---

<div class="post-metadata">

**Author:** ![gxrxrdx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/gxrxrdx/32/1424_2.png) [@gxrxrdx](https://community.crewai.com/u/gxrxrdx)\
**Post date:** [December 11, 2024, 7:10am UTC](https://community.crewai.com/t/error-failed-to-spawn-run-crew-caused-by-no-such-file-or-directory-os-error-2/949/2 "2024-12-11T07:10:23Z")

</div>

same here, running on WSL2 debian.  
did you find a way to fix it?

---

<div class="post-metadata">

**Author:** ![op\_ny](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/op_ny/32/1541_2.png) [@op\_ny](https://community.crewai.com/u/op_ny)\
**Post date:** [December 19, 2024, 6:01am UTC](https://community.crewai.com/t/error-failed-to-spawn-run-crew-caused-by-no-such-file-or-directory-os-error-2/949/3 "2024-12-19T06:01:27Z")

</div>

`/.venv/bin/crew install` fails with `An unexpected error occurred: [Errno 2] No such file or directory: 'uv'`

Exposing the path `PATH=$PATH:/.venv/bin` seems to work eg. `crewai install`
