I have a backend application based on Node.js. The code is written in JavaScript, except in folder 'scripts', which it is in Python.
I have some external libraries installed (Pandas, Matplotlib, etc.) to execute those scripts, and I used the virtual environment (venv) to use them it correctly.
However, I always need to activate 'source venv/bin/activate' before to execute them (when I am in localhost).
The problem is in production.
Is there a way to let them activate permanently on production? Or other extra software? I hosted these files on a VPS in Hostinger, but in production I got some errors in scripts which has some libraries installed.
This 'activate' might be the problem.
/home/app/venv/bin/python myapp.py; you don't need the activate script..bashrc file, e.g. /home/app/.bashrc that includes source ~/venv/bin/activate.