ASReml for Python requires:
pip (included with most Python installations; run python -m pip --version in a terminal to check)All commands below are run in a terminal.
Create a virtual environment in a directory of choice:
The package can be installed directly from the repository using pip. Choose the variant that best suits your needs:
python -m pip install --extra-index-url https://products.vsni.co.uk/asreml/python-package asreml
python -m pip install --extra-index-url https://products.vsni.co.uk/asreml/python-package "asreml[plots]"
python -m pip install --extra-index-url https://products.vsni.co.uk/asreml/python-package "asreml[full]"
Verify the installation:
If license activation is required, run the following command:
Where:
<LOCATION> is the location into which the asreml package was installed, as shown when running pip show asreml.YYYY-YYYY-YYYY-YYYY is your license key.This should create a .lic file under VSNi/enterprise_licenses in the current user’s home directory.
Try loading ASReml:
If the license is not found, set the VSN_USER_LICPATH environment variable to the directory containing the license file:
To make it permanent, append it to your shell’s startup file, ~/.bashrc on most Linux systems:
or ~/.zshrc on macOS:
Try loading ASReml again after setting the environment variable.
All commands below are run in a PowerShell terminal.
Create a virtual environment in a directory of choice:
The package can be installed directly from the repository using pip. Choose the variant that best suits your needs:
Verify the installation:
If license activation is required, run the following command:
Where:
<LOCATION> is the location into which the asreml package was installed, as shown when running pip show asreml.YYYY-YYYY-YYYY-YYYY is your license key.This should create a .lic file under VSNi/enterprise_licenses in the current user’s home directory.
Try loading ASReml:
If the license is not found, set the VSN_USER_LICPATH environment variable to the directory containing the license file:
To make it permanent:
Try loading ASReml again after setting the environment variable.