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
646 stars 258 forks source link

ResolvePackageNotFound of Readline and ncurses #25

Open yongnuan opened 9 months ago

yongnuan commented 9 months ago

I am using conda and wind10.

Retrieving notices: ...working... done Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

conda install conda-forge::readline conda install anaconda::ncurses

PackagesNotFoundError: The following packages are not available from current channels:

pip install have much lower version of above 2 libary.

Thanks for help.

benman1 commented 9 months ago

Hi @yongnuan! We had earlier discussions about this. The problem here is that WIndows doesn't have ncurses and readline (I am guessing you are on Windows?).

If you can use the Docker installation (or you use WSL) you should be fine. Otherwise, if you want to debug this issue, could you post the output for conda when you run without these two lines (ncurses and readline)?

@jlcanibe did you find a solution for this?

bdeva1975 commented 8 months ago

I am getting the same issue. After removing the two lines, the installation doesn't seem to stop and keeps on going endlessly.

benman1 commented 7 months ago

@bdeva1975 that's annoying! I can't test this at the moment - I don't have Windows. Have you heard of WSL? It allows you to run Linux on Windows, and often makes it much easier to install software. Here's a link that explains the installation: https://learn.microsoft.com/en-us/windows/wsl/install?

bdeva1975 commented 7 months ago

Thanks a lot for your response. Currently my laptop has very limited resources. I know about WSL. I will use WSL as and when my resources are upgraded.

On Thu, Apr 4, 2024, 20:43 Ben Auffarth @.***> wrote:

@bdeva1975 https://github.com/bdeva1975 that's annoying! I can't test this at the moment - I don't have Windows. Have you heard of WSL https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux? It allows you to run Linux on Windows, and often makes it much easier to install software. Here's a link that explains the installation: https://learn.microsoft.com/en-us/windows/wsl/install?

— Reply to this email directly, view it on GitHub https://github.com/benman1/generative_ai_with_langchain/issues/25#issuecomment-2037485581, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJCHEU33TEUEGO7RWRFAK3Y3VU3LAVCNFSM6AAAAABDD5NF32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXGQ4DKNJYGE . You are receiving this because you were mentioned.Message ID: @.***>

srgonzalezz commented 4 months ago

Hello @benman1 , I found the windows versions of these two packages:

I guess they could serve the same purpose, just rename them in the code and make sure they have the same syntax.