Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install terraform-local via python pip




terraform-local - Thin wrapper script to run Terraform against LocalStack, it belongs to Classifiers:

- Topic :: Software Development :: Testing

When you know about this project and you want to new install terraform-local to support your project or you get trouble as ModuleNotFoundError: No module named "terraform-local" or ImportError: cannot import name "terraform-local" in your project, let follow this tutorial to install terraform-local



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_terraform-local_env

- Active the virtual environment

test_terraform-local_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_terraform-local_env

- Active the virtual environment

source test_terraform-local_env/bin/active


Step 2: OK, now, let flow below content to start the installation terraform-local

To install terraform-local on Windows(CMD):

py -m pip install terraform-local

To install terraform-local on Unix/macOs:

pip install terraform-local


Step 3: If you want to install a specific terraform-local version, add ==<terraform-local version> to the end command line

Example:

pip install terraform-local==0.1


Please see the version list below table:

VersionReleased dateCommand
terraform-local 0.22022-04-21T19:24:54Windows:

py -m pip install terraform-local==0.2

Unix/macOs:

pip install terraform-local==0.2

terraform-local 0.12022-03-24T19:54:32Windows:

py -m pip install terraform-local==0.1

Unix/macOs:

pip install terraform-local==0.1


Step 4: Otherwise, you can install terraform-local from local archives:

Download the distribution file from terraform-local-0.2.tar.gz or the specific terraform-local version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_terraform-local_downloaded_file>

On Unix/macOs:

pip install <path_to_terraform-local_downloaded_file>


List distribution:


Project link:

- Homepage