| 
       << Click to Display Table of Contents >> Navigation: Platforms and wrappers > Python and PySMILE | 
    
To use PySMILE in your Python program, import the pysmile module:
import pysmile
Your license key can either be pasted directly into your Python code or imported as a module:
import pysmile_license
PySMILE binaries are available for Python 2.7 and Python 3.x. PySMILE consists of a single dynamically loaded library, whose 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, the Python package manager, to automate the download. The software download website provides binaries compatible with the most recent stable Python version, while the 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 force re-download of the pysmile module from the BayesFusion repository, add --force-reinstall to the command line.
Sonatype Nexus requires the pip repository URLs to end with simple. We maintain pip repository mirrors for users of Nexus at:
https://support.bayesfusion.com/python/pysmile-A/simple/
https://support.bayesfusion.com/python/pysmile-B/simple/