Issue with Crewai_tools installation in VScode

I am trying to copy the coursework from the Crewai in visual studio code, but I’m getting errors related to the crewai_tools package. I’ve tried debugging with ai but multiple instances of reinstalling has left me with the same errors. I get the following errors: ImportError: cannot import name ‘DirectoryReadTool’ from ‘crewai_tools’

It looks like the directory is reading it incorrectly, when I print(dir(crewai_tools)) i get this result: [‘_builtins_’, ‘_cached_’, ‘_doc_’, ‘_file_’, ‘_loader_’, ‘_name_’, ‘_package_’, ‘_path_’, ‘_spec_’]

anyone able to help? Thanks, looking forward to learning with this community!

My suggestion is to use the following single command:

%pip install crewai crewai[tools] langchain-community

The crewai[tools] syntax installs CrewAI with the tools extras, which includes crewai_tools as a dependency.

Then if you would like to inspect the items enclosed in the crewai_tools, run the command

from crewai_tools import \*
# Print all available tools
import crewai_tools
print(dir(crewai_tools)) 

Happy CrewAA coding!