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
@Mohtashim_Shoaib after creating requirements.txt then just “bench pip install” will install the requirements, am i right?
pip install -r requirements.txt
Did it fill your requirement?
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