See langchain issues: #175141 and #17585. The issue has been solved in #17532 for langchain release 0.1.8.
pwd module is not available on Windows. It is Unix-specific and provides access to the Unix user account and password databases. pwd is imported into pebblo.py file, which is part of the langchain_community package.