How to install python packages in ERPNext and how to invoke those files?

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 .