Can't run poetry install --with lint,typing,test,test_integration
due to numpy problem
#19271
Replies: 5 comments 1 reply
-
@walterheck |
Beta Was this translation helpful? Give feedback.
-
that works, but it install 1.26.4, a later version:
if I then run
Installing 1.24.4 specifically also fails:
I presume it's because distutils on python 3.12 is deprecated: https://docs.python.org/3.11/library/distutils.html Looking for direction on what I can do best? |
Beta Was this translation helpful? Give feedback.
-
I guess the langchain dependency for numpy needs to be updated to 1.26.4? |
Beta Was this translation helpful? Give feedback.
-
@walterheck yeah i'm using python 3.9. That probably explains why it is working for me. |
Beta Was this translation helpful? Give feedback.
-
I had the same problem on my mac (MacBook Air M3, Sonoma 14.5) and Python 3.12. I used homebrew to install [email protected] and then forced poetry to use this version as well (poetry env use python3.11). All worked after that. Here's the link for how to force Poetry environments: https://python-poetry.org/docs/managing-environments/#switching-between-environments The core issue seems to be that distutils was removed from python 3.12 (https://www.reddit.com/r/learnpython/comments/17ciqnl/modulenotfounderror_no_module_named_distutils_on/). Going back a version solves this. I tried getting distutils installed with Python 3.12 but was unsuccessful. That's work for another day. Use Python 3.11 and force Poetry to do that same. That should solve the issue. |
Beta Was this translation helpful? Give feedback.
-
Wanted to try and see if I could contribute a simple feature, but I'm not very experienced in Python. I followed the instructions to contribute here, it tells me to run
poetry install --with lint,typing,test,test_integration
.That fails for me on a mac like so:
Any idea what I might do to fix this? Googling around gives inconclusive suggestions :)
Beta Was this translation helpful? Give feedback.
All reactions