Im quit new to python coming from the JS world .
When installing a package in javascript all the subdependencies of that packge are not part of the package.json. dependencies section. For example:
npm init -y
npm install express
would produce
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.18.2"
}
even though express.js has 31 dependencies
Reading about python dependencies. I did the following steps:
created virtual env:
python -m venv my-virutal-env
made sure no package is installed:
pip freeze > to-uninstall.txt
pip uninstall -r to-uninstall.txt
pip freeze > requirements.txt
Installed llamaIndex
pip install llama_index
producing requirements again using pip freeze > requirements.txt
produces:
...
llama-index==0.5.12
...
when ... are a lot of other packages
This is very undesirable. How Can I overcome this?