Requirements:
- Python 3.8+
Installation:
# macOS/Linux
python3 -m pip install awsiotsdk
# Windows
python -m pip install awsiotsdkPrecompiled wheels are automatically downloaded for most platforms (macOS, Windows, Linux).
Precompiled wheels are downloaded when installing on major platforms (Mac, Windows, Linux). If wheels are unavailable for your platform, your machine must compile AWS Common Runtime C libraries.
- C compiler (Clang 6+, GCC 5+, or MSVC 15+)
- CMake 3.9+
- Python development headers
Windows Compilation Setup
- Download Visual Studio Installer
- Run installer and select Desktop development with C++ workload
- Verify installation:
- Open "Developer Command Prompt for VS" from Start Menu
- Run
cl.exe- should show compiler version
Note: Use Developer Command Prompt (not regular terminal) when building.
Alternative to MSVC using GCC on Windows:
- Download and run MSYS2 installer from msys2.org
- Follow MSYS2 instructions to update database and base packages
- Install MinGW-w64 toolchain:
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
- Add to Windows PATH:
C:\msys64\mingw64\bin - Verify:
gcc --version
- Download CMake 3.9+ for Windows
- Run installer and check "Add CMake to system PATH" option
- Restart terminal and verify:
cmake --version
Automatically installed with Python on Windows.
macOS Compilation Setup
Using Homebrew:
- During brew installation, it will prompt to install Xcode Command Line Tools
- Type
yto install - Verify:
clang --version
Manual Installation:
- Go to developer.apple.com/downloads
- Sign in with Apple ID
- Download "Command Line Tools for Xcode"
- Install and verify:
clang --version
Using Homebrew:
brew install cmake
cmake --versionManual Installation:
- Download from cmake.org
- Drag CMake.app to Applications folder
- Add to PATH:
sudo "/Applications/CMake.app/Contents/bin/cmake-gui" --install - Restart terminal and verify:
cmake --version
Automatically installed with Python on macOS.
Linux Compilation Setup
Check if already installed:
clang --version
gcc --versionUbuntu:
sudo apt update
sudo apt install build-essential # for GCC
# OR
sudo apt install clang # for ClangArch Linux:
sudo pacman -S gcc # for GCC
# OR
sudo pacman -S clang # for ClangUbuntu:
# Via Software Center: search for "cmake"
# OR via command line:
sudo snap install cmakeArch Linux:
sudo pacman -S cmakeUbuntu:
sudo apt install python3-devArch Linux:
sudo pacman -S python3-devRHEL/CentOS/Fedora:
sudo dnf install python3-devel
# OR
sudo yum install python3-develCompilation Issues:
- Compilation fails: Ensure you have C compiler, CMake, and Python headers installed
- CMake not found: Add CMake to your system PATH
- Permission errors: Use
sudoon Linux/macOS or run as Administrator on Windows - Python version: Verify you're using Python 3.8+ with
python --version
Getting Help:
- Check our FAQ
- Search existing issues
- Create a new issue