ImportError: cannot import name 'TavilyClient' from 'tavily'
Opened this issue · 6 comments
I'm not sure what I'm missing:
Command line:
pip install tavily-python
Python:
from tavily import TavilyClient
ImportError: cannot import name 'TavilyClient' from 'tavily'
Same issue here
If you change the import to from tavily import Client as TavilyClient
it should work. Maybe we should update the docs?
I've changed the import and am still getting the same error as OP.
Me too
Traceback (most recent call last):
File "main.py", line 4, in
from tavily import TavilyClient
ModuleNotFoundError: No module named 'tavily'
from tavily import TavilyClient
Hello.
Please try updating the package using pip install --upgrade tavily-python
If the installation completes successfully, you should be able to import the client without issue, but please let me know if this still doesn't fix the problem.
我不确定我错过了什么:
命令行:
pip install tavily-python
Python:
from tavily import TavilyClient
ImportError: cannot import name 'TavilyClient' from 'tavily'
原因是导入的 tavily 包和你运行的python代码文件重名,更改一下代码文件名即可