How to install a python package using pip in bench

I tried activating the virtual env and installing the package and then deactivate the env
but no use
so what is the proper way of installing python package in the bench

there are 2 ways whether install the pip pkg using your terminal in python env or add in requirement.txt file like pyzk==0.0.9 like this

hey @Mohtashim_Shoaib ,
where is requirements.txt located


if dont find the file please create it at the root level

@Mohtashim_Shoaib after creating requirements.txt then just “bench pip install” will install the requirements, am i right?

pip install -r requirements.txt

thanks @Mohtashim_Shoaib

Did it fill your requirement?

@Mohtashim_Shoaib yep

Ensure you have Python and pip installed :
python --version
pip --version

Create a virtual environment myenv (you can name it anything you like) :
python -m venv myenv

Activate the virtual environment (on Windowa):
myenv\Scripts\activate

OR

Activate the virtual environment (on macOS/Linux):
source myenv/bin/activate

Install the desired Python package :
pip install

Verify the installation:
pip list