Crewai Install - Pylance Distribution error

Good morning,

When I try to use the command “crewai install”, I received an error from Pylance :

error: Distribution pylance==0.38.2 @ registry+https://pypi.org/simple can’t be installed because it doesn’t have a source distribution or wheel for the current platform

hint: You’re on Windows (win_amd64), but pylance (v0.38.2) only has wheels for the following platforms: manylinux_2_17_aarch64, manylinux_2_17_x86_64, manylinux_2_28_aarch64, manylinux_2_28_x86_64, manylinux2014_aarch64, manylinux2014_x86_64; consider adding your platform to tool.uv.required-environments to ensure uv resolves to a version with compatible wheels
An error occurred while running the crew: Command ‘[‘uv’, ‘sync’]’ returned non-zero exit status 2.

I have this error even with the demo program.

I’ve tried to update pylance and downgrade to previous issue with no solution.

I use VS Code which indicate an error in my Crew.py file :

from crewai import Agent, Crew, Process, Task –> Import “crewai” could not be Resolved Pylance reportMissingImports

I don’t understand the problem because monday, I’ve successfully use the demo program….

Could you help me ?

Thanks !

By playing the spot the difference game, I identified a difference between my Monday test and today’s attempt…

Monday: CrewAI Install installed the Pylance 0.38.0 dependency

Today: It’s trying to install the Pylance 0.38.2 dependency

However, the CrewAI version is the same in both cases… (0.201.1).

I have not found a way to change the Pylane issue requested, do you know how ?

thanks

I have the same issue. In theory uv.lock file can be modified, so pylance is no longer the dependency, but I am not that advanced in Python.

The cause is that pylance 0.38.2 is missing the package for Windows: pylance · PyPI

I emailed maintainer to fix the issue, but it’s hard to say how long it takes.

1 Like

I’m like you; I’m not very proficient in Python.
After a bit of searching, I managed to modify the dependency to work with Pylane 0.38.0, for which I know it works.

You need to modify the pyproject.toml file and add a dependency like this:

requires-python = “>=3.10,<3.14”
dependencies = [
“crewai[tools]>=0.201.1,<1.0.0”,
“pylance == 0.38.0”,

With this modification, my installation of lacrew went well and my program launched correctly.

1 Like

Sorry about that. We ran out of space on pypi :cry:. We’re working on getting this addressed and should be able to get the 0.38.2 build fixed up by the end of the day.

2 Likes

Thanks a lot! It helped.

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