Introduction
Hi, I am Akshay Rao, recently working with python in AWS cloud shell every time, i had to activate the python env whenever open the cloud shell. This was annoying me, so found a solution.
Pre-requisites
AWS account
Let's start
- Login to the AWS account and open the cloud shell form the console.
- Create a python env in it.
everytime i had to execute the
source ~/.venv/bin/activate
to activate the py env. - Now we can put this command in the ~/.bashrc file and it will run this command when ever the cloud shell is opened.
- to test open new tab or just source the bashrc file.
- from now on we dont need to remember to activate the py env before working.
Thank you
Top comments (1)
cool~ and just only used for AWS shell? another is working fine as well? thanks