Open tb opened 2 months ago
I was able to fix it properly by running: poetry add https://files.pythonhosted.org/packages/3f/14/e105b8ef6d324e789c1589e95cb0ab63f3e07c2216d68b1178b7c21b7d2a/torch-2.2.2-cp311-none-macosx_10_9_x86_64.whl
using the following pyproject.toml file: ` [tool.poetry] name = "langchain-crash-course" version = "0.1.0" description = "Everything you need to know to get started with LangChain" authors = ["anup"]
[tool.poetry.dependencies] python = ">=3.10.0,<3.12" langchain-openai = "^0.2.0" python-dotenv = "^1.0.1" langchain = "^0.3.0" langchain-community = "^0.3.0" langchain-anthropic = "^0.2.1" langchain-google-genai = "^2.0.0" langchain-google-firestore = "^0.3.0" firestore = "^0.0.8" chromadb = "^0.5.0" tiktoken = "^0.7.0" sentence-transformers = "^3.0.0" bs4 = "^0.0.2" firecrawl-py = "^1.2.3" langchainhub = "^0.1.18" wikipedia = "^1.4.0" tavily-python = "^0.5.0" pkgconfig="1.5.5" torch = {url = "https://files.pythonhosted.org/packages/3f/14/e105b8ef6d324e789c1589e95cb0ab63f3e07c2216d68b1178b7c21b7d2a/torch-2.2.2-cp311-none-macosx_10_9_x86_64.whl"}
[tool.pyright]
useLibraryCodeForTypes = true exclude = [".cache"]
[tool.ruff]
select = ['E', 'W', 'F', 'I', 'B', 'C4', 'ARG', 'SIM'] ignore = ['W291', 'W292', 'W293']
[build-system] requires = ["poetry-core=1.0.0"] build-backend = "poetry.core.masonry.api"
`
I was not able to start the project on MacOS
Error I get:
I tried https://stackoverflow.com/a/76359919/478584 but it did not help.
Workaround:
NOTE: pip installed torch-2.2.2-cp311-none-macosx_10_9_x86_64.whl