I just launched AWS Sagemaker studio and trying to create virtual environment to work with as below:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
venv works for my python scripts on Sagemaker. I am able to import the packages in my script as "import pandas as pd"
But When I tried opening a Jupyter notebook on Sagemaker and run import pandas as pd I am getting error as ModuleNotFoundError: No module named 'pandas'
How do I use venv in my notebook? Thanks.