# Setup This page will outline the setup required for using Qualcomm® Genie. First, please make sure the QNN SDK setup is done as per the instructions in `/docs/QNN/general/setup.html`. ## Environment setup ### Python If using the QNN GenAiTransformer backend, also make sure to follow the Python setup found here: `/docs/QNN/general/setup.html`. Also, the [qnn-genai-transformer-composer](https://docs.qualcomm.com/doc/80-63442-100/topic/qnn-genai-transformer-composer.html#qnn-genai-transformer-composer) tool will require installation specific version of packages as mentioned in the following table. | Package | Version | | --- | --- | | transformers | 4.31.0 | | tokenizers | 0.19.1 | | sentencepiece | 0.1.98 | | tiktoken | 0.7.0 | | tqdm | 4.65.0 | ### Linux The user environment can be set by calling the `/bin/envsetup.sh` script. Open a command shell on Linux host and run: # Replace with path where QNN SDK was installed source /bin/envsetup.sh Copy to clipboard This will set/update the following environment variables: > > > - QNN\_SDK\_ROOT > - PYTHONPATH > - PATH > - LD\_LIBRARY\_PATH `${QNN_SDK_ROOT}` represents the full path to Qualcomm® AI Engine Direct SDK root. ### Windows The user environment can be set by calling `/bin/envsetup.ps1` script. First, open `Developer PowerShell for VS2022` as Administrator. Set-ExecutionPolicy RemoteSigned Copy to clipboard Then, execute the following script. # Replace with path where QNN SDK was installed > & "\bin\envsetup.ps1" Copy to clipboard This will set/update the following environment variables: > > > - QNN\_SDK\_ROOT > - PATH > - PYTHONPATH `${QNN_SDK_ROOT}` represents the full path to Qualcomm® AI Engine Direct SDK root. Last Published: Oct 02, 2025 [Previous Topic Tutorials](https://docs.qualcomm.com/bundle/publicresource/80-63442-100/topics/tutorials.md) [Next Topic How to Use Genie](https://docs.qualcomm.com/bundle/publicresource/80-63442-100/topics/how_to_use_genie.md)