InstallPackageIfNeeded

If Python package is not installed (in NeuroExplorer python distribution), installs the package. Python 3 only.

Syntax

InstallPackageIfNeeded(packageName)

Parameters

Parameter

Type

Description

packageName

string

Package name

Return

None.

Examples

Python

import nex
# if we need scipy to use, for example, scipy signal processing functions,
# run the following code to install scipy:
nex.InstallPackageIfNeeded('scipy')