I’m trying with pip install, Package was installed in bench but I can’t invoke those files in my function
Ideas and suggestions are welcomed!
Thanks!!!
You can include your package in requirements.txt
and run a bench setup requirements
.
Package was installed in bench but I can’t invoke those files in my function
Can you give us a sneak-peak of what you’re facing ? Hope you’ve imported the package
This can help you:
Option 1: Install in the virtual environment
sudo ./env/bin/pip install pandas
Option 2: Activate virtual environment from frappe-bench
source env/bin/activate
and
pip install pandas
To return
deactivate
5 Likes
Tq,This really sorted my many packages issue…
I have types pandas inside the requirements …can you plzlet me know how exactly to write pandas inside requirements .
you need to edit the pyproject.toml
there is a dependencies part:
dependencies = [.... #your dependencies
"pandas==2.2.1"
the command bench pip install pandas
should also work
1 Like