LangChain 0.1.0 (MacBook M1/M2 - macOS 14) Setup Guide #15967
fletchertyler914
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hopefully this is a good place to put this guide. After having some issues installing Python
>=3.12.1
with Pyenv, and more issues with LangChain0.1.0
, I have documented steps to create a repeatable, stable working environment on an M1/M2 machine.I noticed that some
ncurses
dependencies were missing when trying to install Pythonv3.12.1
using the latest Pyenv from Homebrew. The beginning of this guide walks through the fix to get higher python environments working on M1/M2 machines.The remainder of the guide walks through globally setting up langchain, langchain-cli, and stable versions of their dependencies (namely pydantic
<2
), and using poetry to manage the virtual environment and packages with ease.If using VSCode, it additionally walks through setting the python interpreter so locally installed modules are in scope.
The guide can be found here, along with the code generated by following the steps in the guide to get a quickstart langchain app with the
pirate-speak
template up and running.Beta Was this translation helpful? Give feedback.
All reactions