Downloads – NAG Python Bindings (nag4py)

The NAG Python Bindings work with Python 2.7 and Python 3.X.

Requirements

There are several requirements for the NAG Library and we recommend that users use a Python distribution that comes with Numpy e.g. Anaconda and Enthought Canopy.

Advanced: We also recommend that you use an Environment when developing with the NAG Library.

Take me to: Windows | Linux | Mac OS X

Operating System Marks Available NAG C Library Conda Installation (Anaconda) Setup.py (Anaconda/Canopy) Documentation
Windows          
32-bit 25 Download CLW3225DAL N/A Install C Library Doc | Python Doc
32-bit 23 Download CLW3223DAL N/A Install C Library Doc | Python Doc
64-bit 25 Download CLW6I25DAL Install Install C Library Doc | Python Doc
64-bit 23 Download CLW6I23DAL Install Install C Library Doc | Python Doc
Linux          
64-bit
64-bit Integers
25 Download CLL6I25DCL Install Install C Library Doc | Python Doc
64-bit
32-bit Integers
23 Download CLL6A23DGL N/A Install C Library Doc | Python Doc
64-bit
64-bit Integers
23 Download CLL6A23DHL Install Install C Library Doc | Python Doc
Mac          
64-bit 23 Download CLMI623DGL Install Install C Library Doc | Python Doc

Windows 32-bit Mark 25 Setup Install

  1. Download the NAG C Library (CLW3225DAL) [if already installed, go to #2]
    1. Run clw3225dal_setup.exe
      1. Accept the Software Licence Agreement
      2. Choose the installation directory (we recommend the default location)
      3. Choose the full installation
      4. Click Install
      5. Update Environment Variables
      6. Select to Register Online and Request and Install a Licence Key
      7. Register Online
        • Please use your academic or work email address if appropriate
        • Please add "Python" to the additional information box
      8. Request a Licence Key (this can also be reached from the Start Menu)
        • Please use youracademic or work email address if appropriate
        • Please select 'Trial' for unlicensed users and 'Full' for licensed users
        • Please add "Python" to the comments.
        • Copy to the clipboard and email to support@nag.co.uk
        • Enter the licence key and install the licence key
      9. Check the installation by running Check NAG CLW3225DAL DLL Output
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open (Anaconda/Canopy) Command Prompt
    1. > cd C:\Path to Downloads\nag4py-25.0\nag4py-25.0
    2. > python setup.py install
    3. > python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Windows 32-bit Mark 23 Setup Install

  1. Download the NAG C Library (CLW3223DAL) [if already installed, go to #2]
    1. Run clw3223dal_setup.exe from the Downloads folder
      1. Accept the Software Licence Agreement
      2. Choose the installation directory (we recommend the default location)
      3. Choose the full installation
      4. Click Install
      5. Update Environment Variables
      6. Select to Register Online and Request and Install a Licence Key
      7. Register Online
        • Please use your academic or work email address if appropriate
        • Please add "Python" to the additional information box
      8. Request a Licence Key (this can also be reached from the Start Menu)
        • Please use your academic or work email address if appropriate
        • Please select 'Trial' for unlicensed users and 'Full' for licensed users
        • Please add "Python" to the comments
        • Copy to the clipboard and email to support@nag.co.uk
        • Enter the licence key and install the licence key
      9. Check the installation by running Check NAG CLW3223DAL DLL Output
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open (Anaconda/Canopy) Command Prompt
    1. > cd C:\Path to Downloads\nag4py-23.0\nag4py-23.0
    2. > python setup.py install
    3. > python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Windows 64-bit Mark 25 Conda Install

  1. Open the Anaconda Command Prompt or Anaconda Launcher
    1. In the Command Prompt
      1. > conda install -c nag nag4py
    2. In the Anaconda Navigator
      1. Add the "nag" channel using the Channels button
      2. Select "Not Installed" from the drop down menu
      3. Search for "nag4py"
      4. Mark for specific version and choose "25"
      5. Click Apply and OK
    3. To install a licence key, please enter the following into the command prompt.
      1. > kusari_key_gui
      2. In the GUI click "Request New Licence"
      3. Complete the "New Licence Request"
      4. Click "Generate Licence Request"
      5. Copy and paste the output of the form to support@nag.co.uk to request your licence key
      6. When you receive the licence key please copy and paste it into the "Kusari Licence Installer" and click "Install Licence Key"
    4. Open Anaconda Command Prompt
    5. > python
    6. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    7. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  2. Everything is installed correctly and is ready to be used.
Back to top

Windows 64-bit Mark 25 Setup Install

  1. Download the NAG C Library (CLW6I25DAL) [if already installed, go to #2]
    1. Run clw6i25dal_setup.exe from the Downloads folder if downloaded in step 3
      1. Accept the Software Licence Agreement
      2. Choose the installation directory (we recommend the default location)
      3. Choose the full installation
      4. Click Install
      5. Update Environment Variables
      6. Select to Register Online and Request and Install a Licence Key
      7. Register Online
        • Please use your academic or work email address if appropriate
        • Please add "Python" to the additional information box
      8. Request a Licence Key (this can also be reached from the Start Menu)
        • Please use your academic or work email address if appropriate
        • Please select 'Trial' for unlicensed users and 'Full' for licensed users
        • Please add "Python" to the comments.
        • Copy to the clipboard and email to support@nag.co.uk
        • Enter the licence key and install the licence key
      9. Check the installation by running Check NAG CLW6I25DAL DLL Output
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open (Anaconda/Canopy) Command Prompt
    1. > cd C:\Path to Downloads\nag4py-25.0\nag4py-25.0
    2. > python setup.py install
    3. > python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Windows 64-bit Mark 23 Conda Install

  1. Open the Anaconda Command Prompt or Anaconda Launcher
    1. In the Command Prompt
      1. > conda install -c nag nag4py=23
    2. In the Anaconda Navigator
      1. Add the "nag" channel using the Channels button
      2. Select "Not Installed" from the drop down menu
      3. Search for "nag4py"
      4. Mark for specific version and choose "23"
      5. Click Apply and OK
    3. To install a licence key, please enter the following into the command prompt.
      1. > kusari_key_gui
      2. In the GUI click "Request New Licence"
      3. Complete the "New Licence Request"
      4. Click "Generate Licence Request"
      5. Copy and paste the output of the form to support@nag.co.uk to request your licence key
      6. When you receive the licence key please copy and paste it into the "Kusari Licence Installer" and click "Install Licence Key"
    4. Open Anaconda Command Prompt
    5. > python
    6. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    7. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  2. Everything is installed correctly and is ready to be used
Back to top

Windows 64-bit Mark 23 Setup Install

  1. Download the NAG C Library (CLW6I23DAL) [if already installed, go to #2]
    1. Run clw6i23dal_setup.exe
      1. Accept the Software Licence Agreement
      2. Choose the installation directory (we recommend the default location)
      3. Choose the full installation
      4. Click Install
      5. Update Environment Variables
      6. Select to Register Online and Request and Install a Licence Key
      7. Register Online
        • Please use your academic or work email address if appropriate
        • Please add "Python" to the additional information box
      8. Request a Licence Key (this can also be reached from the Start Menu)
        • Please use your academic or work email address if appropriate
        • Please select 'Trial' for unlicensed users and 'Full' for licensed users
        • Please add "Python" to the comments.
        • Copy to the clipboard and email to support@nag.co.uk
        • Enter the licence key and install the licence key
      9. Check the installation by running Check NAG CLW6I23DAL DLL Output
      10. Report any errors to support@nag.co.uk
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open (Anaconda/Canopy) Command Prompt
    1. > cd C:\Path to Downloads\nag4py-23.0\nag4py-23.0
    2. > python setup.py install
    3. > python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Linux 64-bit (64-bit Integers) Mark 25 Conda Install

  1. Install nag4py
    1. In a Terminal, enter:
      $ conda install -c nag nag4py
  2. Request and Install a Licence Key
    1. In a Terminal
      $ cd /installation_directory/licence/bin/linux_x64
    2. $ ./khostid
    3. Email the Kusari id to support@nag.co.uk along with "Python" and "Trial/Full"
    4. Support will send a file: nag.key, save this file to /opt/NAG or add its contents to the existing nag.key file
  3. Confirm Installation
    1. In a Terminal:
      $ python
      1. >>> import nag4py.a00 as a00
      2. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
      3. >>> a00.a00acc()
        • You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used

Linux 64-bit (64-bit Integers) Mark 25 Setup Install

  1. Install the NAG C Library (CLL6I25DCL) [if already installed, go to #2]
    1. Download the NAG C Library archive
    2. Extract to the Downloads folder
    3. In a Terminal:
      $ sudo bash install.sh
      1. Type "yes"
      2. Read the Software Licence Agreement
      3. Type "accept"
      4. Choose the installation directory (we recommend the default location)
    4. Request and Install a Licence Key
      1. In a Terminal
        $ cd /installation_directory/licence/bin/linux_x64
      2. $ ./khostid
      3. Email the Kusari id to support@nag.co.uk along with "Python" and "Trial/Full"
      4. Support will send a file: nag.key, save this file to /opt/NAG or add its contents to the existing nag.key file
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open the Terminal
    1. $ cd ./Path to Downloads/nag4py-25.0/nag4py-25.0
    2. $ python setup.py install
    3. $ python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Linux 64-bit (32-bit Integers) Mark 23 Setup Install

  1. Install the NAG C Library (CLL6A23DGL) [if already installed, go to #2]
    1. Download the NAG C Library archive
    2. Extract to the Downloads folder
    3. In a Terminal:
      $ sudo bash install.sh
      1. Type "yes"
      2. Read the Software Licence Agreement
      3. Type "accept"
      4. Choose the installation directory (we recommend the default location)
    4. Request and Install a Licence Key
      1. In a Terminal
        $ cd /installation_directory/licence/bin/linux_x64
      2. $ ./khostid
      3. Email the Kusari id to support@nag.co.uk along with "Python" and "Trial/Full"
      4. Support will send a file: nag.key, save this file to /opt/NAG or add its contents to the existing nag.key file
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open the Terminal
    1. $ cd ./Path to Downloads/nag4py-23.0/nag4py-23.0
    2. $ python setup.py install
    3. $ python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Linux 64-bit (64-bit Integers) Mark 23 Conda Install

  1. Install nag4py
    1. In a Terminal, enter:
      $ conda install -c nag nag4py=23
  2. Request and Install a Licence Key
    1. In a Terminal
      $ cd /installation_directory/licence/bin/linux_x64
    2. $ ./khostid
    3. Email the Kusari id to support@nag.co.uk along with "Python" and "Trial/Full"
    4. Support will send a file: nag.key, save this file to /opt/NAG or add its contents to the existing nag.key file
  3. Confirm Installation
    1. In a Terminal:
      $ python
      1. >>> import nag4py.a00 as a00
      2. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
      3. >>> a00.a00acc()
        • You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Linux 64-bit (64-bit Integers) Mark 23 Setup Install

  1. Install the NAG C Library (CLL6A23DHL) [if already installed, go to #2]
    1. Download the NAG C Library archive
    2. Extract to the Downloads folder
    3. In a Terminal:
      $ sudo bash install.sh
      1. Type "yes"
      2. Read the Software Licence Agreement
      3. Type "accept"
      4. Choose the installation directory (we recommend the default location)
    4. Request and Install a Licence Key
      1. In a Terminal
        $ cd /installation_directory/licence/bin/linux_x64
      2. $ ./khostid
      3. Email the Kusari id to support@nag.co.uk along with "Python" and "Trial/Full"
      4. Support will send a file: nag.key, save this file to /opt/NAG or add its contents to the existing nag.key file
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open the Terminal
    1. $ cd ./Path to Downloads/nag4py-23.0/nag4py-23.0
    2. $ python setup.py install
    3. $ python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Mac OS X 64-bit Mark 23 Conda Install

  1. Open the Terminal
    1. $ conda install -c nag nag4py=23
  2. Request and Install a Licence Key
    1. In a Terminal
      $ cd /installation_directory/licence/bin/macx64
    2. $ ./khostid
    3. Email the Kusari id to support@nag.co.uk along with "Python" and "Trial/Full"
    4. Support will send a file: nag.key, save this file to /opt/NAG or add its contents to the existing nag.key file
  3. Open the Terminal
    1. $ python
    2. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    3. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top

Mac OS X 64-bit Mark 23 Setup Install

  1. Install the NAG C Library (CLMI623DGL) [if already installed, go to #2]
    1. Download the NAG C Library archive
    2. Extract to the Downloads folder
    3. In a Terminal:
      $ sudo bash install.sh
      1. Type "yes"
      2. Read the Software Licence Agreement
      3. Type "accept"
      4. Choose the installation directory (we recommend the default location)
    4. Request and Install a Licence Key
      1. In a Terminal
        $ cd /installation_directory/licence/bin/macx64
      2. $ ./khostid
      3. Email the Kusari id to support@nag.co.uk along with "Python" and "Trial/Full"
      4. Support will send a file: nag.key, save this file to /opt/NAG or add its contents to the existing nag.key file
  2. Download the Python Bindings (nag4py)
    1. Extract nag4py from the archive and save to your Downloads folder
  3. Open the Terminal
    1. $ cd ./Path to Downloads/nag4py-23.0/nag4py-23.0
    2. $ python setup.py install
    3. $ python
    4. >>> import nag4py.a00 as a00
      1. If this command fails, then please check that you are using the same command prompt that you used to install the bindings and report any error messages to support@nag.co.uk
    5. >>> a00.a00acc()
      1. You should get the output "1"
        • If you get "0", then the licence key is not installed properly, please contact support@nag.co.uk
  4. Everything is installed correctly and is ready to be used
Back to top