benman1 / generative_ai_with_langchain

Build large language model (LLM) apps with Python, ChatGPT and other models. This is the companion repository for the book on generative AI with LangChain.
https://amzn.to/43PuIkQ
MIT License
552 stars 219 forks source link

pip install not working with Python 3.12 #11

Closed ChPfisterer closed 6 months ago

ChPfisterer commented 6 months ago

Hi Ben, I encountered a problem using pip install to install requirements with Python 3.12.

Using cached lanarky-0.7.16-py3-none-any.whl.metadata (6.7 kB) ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5; 0.8.0 Requires-Python >=3.9,<3.12; 0.8.1 Requires-Python >=3.9,<3.12; 0.8.2 Requires-Python >=3.9,<3.12; 0.8.3 Requires-Python >=3.9,<3.12; 0.8.4 **Requires-Python >=3.9,<3.12** ERROR: Could not find a version that satisfies the requirement ray[serve]>=2.6.3 (from versions: none) ERROR: No matching distribution found for ray[serve]>=2.6.3

With Python 3.11, the installation of requirements works fine.

benman1 commented 6 months ago

@ChPfisterer Hey, that's a good one! I think (I hope) I recommend Python 3.10 in the book (no particular reason), but I should probably highlight in the README that both Python 3.10 and 3.11 can be used. Thanks!

ChPfisterer commented 6 months ago

On page 66 (yes, I have a printed copy, think I am old ;-)), you write: "Please make sure you have Python version 3.10 or higher installed." No worries; we are developers who should be able to handle these messages. However, a short note in the README would be great. With that said, it's a great book so far. I'm looking forward to the more advanced demos.

benman1 commented 6 months ago

Thanks a lot, @ChPfisterer! That's very helpful. I've added this to the README.