<< Click to Display Table of Contents >> Navigation: Platforms and Wrappers > Python and PySMILE |
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
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 single 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 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/