I'm trying to use the pandasai library on AWS Lambda via Lambda layers, but since my local machine is using Windows, I'm downloading the Linux WHL file of the library from PyPI to put as a Lambda layer. However, since pandasai requires me to install a lot of co-dependencies in the same way (matplotlib, pandas, etc.), it will take a really long time.
Is there a quicker/better way to do this? Are there more efficient ways to install Linux architecture python libraries? (Like using Docker images/VMs)
Thanks.
You can use the below command in a writable directory as quicker/better way:
mkdir python
cd python
pip install --platform manylinux2014_x86_64 --target=.\ --implementation cp --python-version 3.8 --only-binary=:all: --upgrade pandasai