I have a Singularity container with many tools along with Python and Jupyter installed in it. But I want to access the external virtual environments I have created for python while using the other tools in Singularity. The reason being I am experimenting with different python packages which cannot be installed into Singularity container without 'sudo' privileges. And I cannot install the other tools on my host machine due to sudo privileges.
I am able to activate the virtual environment but not able to use it: Get this error when I run pip command or Jupyter lab.
bash: /home/username/virtual-env/bin/pip: /home/username/virtual-env/bin/python: bad interpreter: No such file or directory
I want to run Jupyter lab from the virtual environment which is run from the Singularity container.