<< Click to Display Table of Contents >> Navigation: Platforms and Wrappers > Python and PySMILE |
PySMILE binaries are available for Python 2.7 and Python 3.x. PySMILE consists of a single dynamically loaded library. The library name is platform-dependent:
•pysmile.pyd on Windows
•pysmile.so on Linux and macOS
You can manually download PySMILE binaries from BayesFusion's software download website, or use pip (Python package manager) to automate the download. BayesFusion's software download website contains PySMILE binaries compatible with the recent stable Python version, but our pip repository hosts builds for multiple Python releases.
To download using pip:
python -m pip install --no-cache-dir --index-url https://support.bayesfusion.com/pysmile-B/ pysmile
Replace pysmile-B with pysmile-A in the repository URL if you're using PySMILE academic.
To use PySMILE in your Python program, you just need to import the pysmile module:
import pysmile
Your license key can be pasted directly into your Python code, or imported:
import pysmile_license