All posts

Installing Localstack in a Python virtual environment

This post assumes you are creating this environment on macOS.

The first step here is to create the virtual environment directory. The command below will install the virtual environment in the current directories venv folder:

python3 -m venv ./venv

This will create a number of files for you, if you cd into the the venv directory you can list them:

=> cd venv && ls
bin    include    lib    pyvenv.cfg

To start the virtual environment execute the activate executable located in the bin folder of venv:

=> source bin/activate

Running this will pull you into the virtual environment, which you can check by running:

=> which python
venv/bin/python

Now you can install the localstack package from within the virtual environment:

=> python3 -m pip install localstack

Once complete check that you have successfully installed localstack by executing the command localstack in your terminal.

Enjoy installing / configuring things? Then you may enjoy the post Steps to configure Git and remote origin.

Postscript:

I built two products to help fund continued efforts for this website, it would mean a lot if you would check them out:
1. 2500+ Words for the Undermotivated Software Engineer - A short essay I wrote on the titled topic ($3).
2. Build 3 Chrome Extensions in Under 2 Hours - A course I built to teach chrome extension development ($9-20).