Make sure the python env is always running in cloud shell.

make-sure-the-python-env-is-always-running-in-cloud-shell.

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

  1. Login to the AWS account and open the cloud shell form the console.
    Image 1
  2. Create a python env in it.
    everytime i had to execute the

    source ~/.venv/bin/activate

    to activate the py env.
    Image 2

  3. Now we can put this command in the ~/.bashrc file and it will run this command when ever the cloud shell is opened.
    Image 3
  4. to test open new tab or just source the bashrc file.
    Image 4
  5. from now on we dont need to remember to activate the py env before working.

Thank you

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
unlock-growth-with-these-pricing-power-plays

Unlock growth with these pricing power plays

Next Post
development-of-apple-app-clips-and-android-instant-apps-for-on-demand-solutions

Development of Apple App Clips and Android Instant Apps for On-Demand Solutions

Related Posts