-
Notifications
You must be signed in to change notification settings - Fork 16.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poetry install -E all fails because
torch` undetected
#5048
Comments
Hi @startakovsky hope it helps, thanks |
@AvikantSrivastava you are correct, I just deleted my virtual environment and built on top of python 3.9(latest) instead of 3.11. |
Cool @startakovsky |
PyTorch supports Python 3.11 as of last month. Is it possible to relax the version constraint on PyTorch to enable the use of Python 3.11 in projects dependent on LangChain? |
Hey peeps, any updates on this one? I am a first-timer in python development, so I am unsure how to deal with the situation. [tool.poetry.dependencies]
python = "3.11.4"
langchain = { version = "0.0.238", extras = ["all", "llms"] } |
If anyone still runs into this issue, it's because the PyTorch version in langchain isn't supported in Python version >=3.9. To fix this, assuming you want to contribute to
cd ~/langchain
python3.9 -m venv langchain
source langchain/bin/activate
python3 --version This should say
|
Hi, @startakovsky! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale. From what I understand, the issue you reported was about the installation of Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you for your contribution to the LangChain repository! Let us know if you have any further questions or concerns. |
I hit this issue last week. I think it's a valid issue for python 3.10+ |
@baskaryan Could you please help @nilsbunger with this issue? They encountered the same problem with the installation of |
Hi, @startakovsky, I'm helping the LangChain team manage their backlog and am marking this issue as stale. From what I understand, the issue was opened regarding the installation of Could you please confirm if this issue is still relevant to the latest version of the LangChain repository, especially for Python 3.10+? If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you! |
System Info
MacOS Ventura, zshell
pyenv virtualenv 3.11 langchain
, clean environmentpyenv local langchain
, automatically activate environmentcurl -sSL https://install.python-poetry.org | python -
, install poetryexport PATH="/Users/steven/.local/bin:$PATH
, added this to allow for poetry to be accessiblepip install --upgrade pip
pip install torch
poetry install -E all
yields the following output. Strange.
Who can help?
@hwchase17 This is install related and while I have langchain running fine from pip in another virtual environment running the same python version (3.11.3), things with poetry are not working well.
Information
Related Components
Reproduction
MacOS Ventura, zshell
pyenv virtualenv 3.11 langchain
, clean environmentpyenv local langchain
, automatically activate environmentcurl -sSL https://install.python-poetry.org | python -
, install poetryexport PATH="/Users/steven/.local/bin:$PATH
, added this to allow for poetry to be accessiblepip install --upgrade pip
pip install torch
poetry install -E all
Expected behavior
The text was updated successfully, but these errors were encountered: