Skip to content
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

Cannot install langchain-pinecone in windows. Need python for x86, but found x86_64 #29352

Open
5 tasks done
AbhiramNS1 opened this issue Jan 22, 2025 · 1 comment
Open
5 tasks done
Labels
investigate Flagged for investigation.

Comments

@AbhiramNS1
Copy link

AbhiramNS1 commented Jan 22, 2025

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

pip install langchain-pinecone
from langchain_pinecone import PineconeVectorStore

vector_store = PineconeVectorStore(index=index, embedding=embeddings)

python version
Python 3.13.1

Error Message and Stack Trace (if applicable)

D:\codebase context\langchain-vector>pip install langchain-pinecone
Processing d:\codebase context\langchain-vector\langchain_pinecone-0.2.2-py3-none-any.whl
Collecting aiohttp<3.11,>=3.10 (from langchain-pinecone==0.2.2)
Downloading aiohttp-3.10.11-cp313-cp313-win_amd64.whl.metadata (8.0 kB)
Requirement already satisfied: langchain-core<0.4.0,>=0.3.29 in d:\abhiram\projects\llama automate\others\codebase context\langchain-vector\vecenv\lib\site-packages (from langchain-pinecone==0.2.2) (0.3.31)
Collecting langchain-tests<0.4.0,>=0.3.7 (from langchain-pinecone==0.2.2)
Downloading langchain_tests-0.3.8-py3-none-any.whl.metadata (3.6 kB)
Collecting numpy<2.0.0,>=1.26.0 (from langchain-pinecone==0.2.2)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
+ D:\codebase context\langchain-vector\vecenv\Scripts\python.exe C:\Users\AppData\Local\Temp\pip-install-qa_xstzd\numpy_e9d24d9f7710499d8ed38160396ec2ea\vendored-meson\meson\meson.py setup C:\Users\AppData\Local\Temp\pip-install-qa_xstzd\numpy_e9d24d9f7710499d8ed38160396ec2ea C:\Users\AppData\Local\Temp\pip-install-qa_xstzd\numpy_e9d24d9f7710499d8ed38160396ec2ea.mesonpy-z2vnu182 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\Abhiram\AppData\Local\Temp\pip-install-qa_xstzd\numpy_e9d24d9f7710499d8ed38160396ec2ea.mesonpy-z2vnu182\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\AppData\Local\Temp\pip-install-qa_xstzd\numpy_e9d24d9f7710499d8ed38160396ec2ea
Build dir: C:\Users\Abhiram\AppData\Local\Temp\pip-install-qa_xstzd\numpy_e9d24d9f7710499d8ed38160396ec2ea.mesonpy-z2vnu182
Build type: native build
Project name: NumPy
Project version: 1.26.4
C compiler for the host machine: ccache gcc (gcc 13.2.0 "gcc (MinGW-W64 i686-msvcrt-posix-dwarf, built by Brecht Sanders, r8) 13.2.0")
C linker for the host machine: gcc ld.bfd 2.42
C++ compiler for the host machine: ccache c++ (gcc 13.2.0 "c++ (MinGW-W64 i686-msvcrt-posix-dwarf, built by Brecht Sanders, r8) 13.2.0")
C++ linker for the host machine: c++ ld.bfd 2.42
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86
Host machine cpu: x86
Program python found: YES (D:\abhiram\projects\Llama Automate\others\codebase context\langchain-vector\vecenv\Scripts\python.exe)
Need python for x86, but found x86_64
Run-time dependency python found: NO (tried sysconfig)

  ..\meson.build:41:12: ERROR: Python dependency not found

  A full log can be found at C:\Users\Abhiram\AppData\Local\Temp\pip-install-qa_xstzd\numpy_e9d24d9f7710499d8ed38160396ec2ea\.mesonpy-z2vnu182\meson-logs\meson-log.txt
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Description

I am trying to install pincone but the buid is failing with the eror.

System Info

Windows 11
Python 3.13.1

@langcarl langcarl bot added the investigate Flagged for investigation. label Jan 22, 2025
@AbhiramNS1
Copy link
Author

AbhiramNS1 commented Jan 22, 2025

This package ( langchain-pinecone) can be installed using python 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Flagged for investigation.
Projects
None yet
Development

No branches or pull requests

1 participant