I'm trying to install pip module based on application directory. root Directory contains multiple sub-directory and inside the sub-directory we have requriement.txt file which contains pip module lets sat below are my directory structure.
├── aws
│ ├── app1
│ │ └── requirement.txt
│ └── app2
│ └── requirement.txt
┌──(palani㉿DESKTOP-1OOLTMI)-[~]
└─$ cat aws/app1/requirement.txt
pymongo
bz2
┌──(palani㉿DESKTOP-1OOLTMI)-[~]
└─$ cat aws/app2/requirement.txt
base64
Now i have read the requirement.txt file each directory (app1 and app2) then i have to create pip package without installing it. But using find command i have collected all the *.txt and stored under result variable.
result=`(find /home/user/aws -maxdepth 2 -type f -name "*.txt" | while read txtfile; do echo $txtfile; done)`
echo $result
now using for loop i need read the each txt file and i need make zip without install something like this.
pip download --dest $destination