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….
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:
Sorry about that. We ran out of space on pypi . 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.