# Install crewai failed on Windows, due to ：RuntimeError: uvloop does not support Windows at the moment

**URL:** <https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632>\
**Category:** CrewAI Community Support\
**Tags:** crewai\
**Created:** [January 10, 2025, 7:00am UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632 "2025-01-10T07:00:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![saneast](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/saneast/32/1910_2.png) [@saneast](https://community.crewai.com/u/saneast)\
**Post date:** [January 10, 2025, 7:00am UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632/1 "2025-01-10T07:00:40Z")

</div>

python version:  
Python 3.10.7

install cmd：

```auto
pip install 'crewai[tools]'

```

error msg:

```auto
Collecting uvloop<0.22.0,>=0.21.0 (from litellm>=1.44.22->crewai[tools])
  Using cached uvloop-0.21.0.tar.gz (2.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "D:\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
          ~~~~ ^^
        File "D:\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Python313\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "D:\Temp\pip-build-env-fmvl54nd\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Temp\pip-build-env-fmvl54nd\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~ ^^
        File "D:\Temp\pip-build-env-fmvl54nd\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~ ^^^^^^^^^^^^^^^^
        File "<string>", line 8, in <module>

      RuntimeError: uvloop does not support Windows at the moment
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

```

---

<div class="post-metadata">

**Author:** ![rishi154](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rishi154/32/2221_2.png) [@rishi154](https://community.crewai.com/u/rishi154)\
**Post date:** [January 10, 2025, 3:57pm UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632/2 "2025-01-10T15:57:18Z")

</div>

Seems its happening because of latest version of litellm(needs uvloop-0.21.0. which does not support windows) I manually installed litellm==1.57.4 and was able to install crewai.

---

<div class="post-metadata">

**Author:** ![aritraroy24](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/aritraroy24/32/1930_2.png) [@aritraroy24](https://community.crewai.com/u/aritraroy24)\
**Post date:** [January 10, 2025, 6:17pm UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632/3 "2025-01-10T18:17:46Z")

</div>

Thanks for the solution.

---

<div class="post-metadata">

**Author:** ![Sannidhay\_Jangam](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/sannidhay_jangam/32/1984_2.png) [@Sannidhay\_Jangam](https://community.crewai.com/u/Sannidhay_Jangam)\
**Post date:** [January 13, 2025, 6:30am UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632/4 "2025-01-13T06:30:37Z")

</div>

Go to CMD  
`wsl --install`  
and then run  
`pip install 'crewai[tools]'`  
To access this in VSC go to the terminal and execute  
`wsl`

---

<div class="post-metadata">

**Author:** ![djhair](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@djhair](https://community.crewai.com/u/djhair)\
**Post date:** [January 27, 2025, 10:24pm UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632/5 "2025-01-27T22:24:56Z")

</div>

I’m running LiteLLM version 1.57.4 but I’m still getting the uvloop error message when i attempt “crewai install”. Any thoughts on how to fix this? Thanks.

C:\Users\dujua\Projects\latest\_ai\_development\>crewai install  
C:\Users\dujua\AppData\Roaming\Python\Python312\site-packages\pydantic\_internal\_config.py:345: UserWarning: Valid config keys have changed in V2:

- ‘fields’ has been removed  
warnings.warn(message, UserWarning)  
Resolved 238 packages in 123ms  
x Failed to build `uvloop==0.21.0`  
|-\> The build backend returned an error  
`-> Call to `setuptools.build\_meta.build\_wheel` failed (exit code: 1)

C:\Users\dujua\Projects\latest\_ai\_development\>litellm --version  
C:\Users\dujua\AppData\Roaming\Python\Python312\site-packages\pydantic\_internal\_config.py:345: UserWarning: Valid config keys have changed in V2:

- ‘fields’ has been removed  
warnings.warn(message, UserWarning)

LiteLLM: Current Version = 1.57.4

C:\Users\dujua\Projects\latest\_ai\_development\>

---

<div class="post-metadata">

**Author:** ![rishi154](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rishi154/32/2221_2.png) [@rishi154](https://community.crewai.com/u/rishi154)\
**Post date:** [January 28, 2025, 6:06am UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632/6 "2025-01-28T06:06:26Z")

</div>

Have you activated venv?  
another way you can try is adding dependency in .toml file

dependencies = [  
“litellm==1.57.4”  
]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/1X/ecda97e72f77c7100e0a761444b1c991925cc789.png) [@system](https://community.crewai.com/u/system)\
**Post date:** [February 11, 2025, 12:20pm UTC](https://community.crewai.com/t/install-crewai-failed-on-windows-due-to-runtimeerror-uvloop-does-not-support-windows-at-the-moment/2632/7 "2025-02-11T12:20:05Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
