0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

chromaDB・Langchainがインストールできなかったけど解決した

Posted at

はじめに

はじめまして、chromaDBとLangchainがインストールできなかったイカだイカ🦑
原因と対策を書くイカ🦑

原因

  • python3.14.0を使っていたこと

解決策

  • python3.12.0に変更した

とった対応

  • VSCode上のターミナルで、現在の仮想を下記のコードで解除する。
deactivate
  • pythonの公式からpython3.12.0をインストール
    https://www.python.org/downloads/release/python-3120/
    ※この際にファイルパスは設定するにチェックを最初に入れる
  • エクスプローラーでインストールされたパスを取得
  • 下記のコマンドをターミナル上で実行
"C:\Users\ユーザー名\AppData\Local\Programs\Python\Python312\python.exe" -m venv new_rag_env
  • 下記で新しい仮想環境を有効かする
new_rag_env\Scripts\activate
  • インストール
pip install chromadb langchain-google-genai sentence-transformers

さいごに

バージョン違いでできないのが今回がはじめてだったイカ🦑
これですいすい泳げるイカ🦑

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?