-
You must have Python 3 installed.
-
Open a Terminal (Linux and macOS) or Command Prompt (Windows).
-
Know the Python command. It can be "
python
", "python3
", or "py
". You can check by executing "python --version
", "python3 --version
", or "py --version
".
-
Create an environment:
python -m venv venv
-
Activate the environment (Linux and macOS):
source venv/bin/activate
-
Activate the environment (Windows):
venv\Scripts\activate.ps1
Note: '(venv)' will appear in the header of the command line.Error: If you have an error because script execution is disabled, you can try this:Get-ExecutionPolicyIf the current policy is set to 'Restricted', update it to 'RemoteSigned':Set-ExecutionPolicy RemoteSigned -
Install all requirements:
pip install -r requirements.txt
Note: If 'pip' is not recognized, you can write 'python -m pip' instead.
- Execute the
main.py
file in the virtual environment:python main.py
-
If you encounter this error in Windows:
ImportError: DLL load failed while importing _framework_bindings: %1
Install the latest C++ Microsoft Library: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170