Replies: 3 comments 1 reply
-
Hello, @PopRang! I'm a bot designed to help you with bug fixes, answer questions, and assist you in becoming a contributor. While you're waiting for a human maintainer, feel free to ask me anything. 确保在运行代码的同一个conda环境中安装了
如果问题仍然存在,请确保你使用的是正确的导入机制。 from typing import TYPE_CHECKING, Any
from langchain._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import Chroma
DEPRECATED_LOOKUP = {"Chroma": "langchain_community.vectorstores"}
_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)
def __getattr__(name: str) -> Any:
return _import_attribute(name)
__all__ = [
"Chroma",
] |
Beta Was this translation helpful? Give feedback.
-
I had a similar problem, I eventually solved it by reinstalling chromadb== 0.5.5 and adjusting the versions of some dependencies. |
Beta Was this translation helpful? Give feedback.
-
Go back to Python 3.10 and reinstall the environment. Because newer versions of Chromadb and its dependencies do not support Python>3.11. At the beginning, my Python version was 3.12, which resulted in the installation of only version 0.3.23 of Chromadb, causing a bug |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
在conda环境中已经安装了chroma
from langchain_community.vectorstores import Chroma
的时候还是报ImportError: Could not import chromadb python package. Please install it with
pip install chromadb
.System Info
1
Beta Was this translation helpful? Give feedback.
All reactions