got this err:ModuleNotFoundError: No module named 'langchaincommunity' pip install…
- User
got this err:ModuleNotFoundError: No module named 'langchain_community'
pip install langchain_community Collecting langchain_community WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000021417030C70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /packages/7f/f1/a72d268ae6895edbf7c23f8f4de701273fc0c8fe3c43ecc625c46b4700ab/langchain_community-0.2.19-py3-none-any.whl
PS C:\Users\ehsan\Desktop\Codes&Project\AI\Hackathon_agent\test> pip install langchain
Assistant
It looks like you're having network connectivity issues when trying to install the packages. The "WinError 10061" indicates your machine can't connect to PyPI (Python Package Index).
Try these solutions:
- Check your internet connection
- Try installing with a different index or mirror:
pip install langchain_community --index-url https://pypi.org/simple/ - If you're behind a proxy or firewall, configure pip to use it:
pip install langchain_community --proxy http://user:password@proxyserver:port - Download the packages manually from PyPI and install locally:
pip install langchain_community --no-index --find-links /path/to/downloaded/packages/
Note that
langchainandlangchain_communityare separate packages. You'll need both if your code imports from both - LangChain split their codebase in late 2023.Would you like me to explain more about any of these solutions?