Python¶
- initPythonEnvironment(environmentName, reset)[source]¶
Initialise an interface to a Python environment using CPython3/2 or Anaconda
- USAGE:
[pyEnvironment, pySearchPath] = initPythonEnvironment (environmentName, reset)
- OPTIONAL INPUTS:
environmentName – String denoting the Python environment to establish an interface to. Fixed options: CPython3 (default), CPython2, base (Anaconda). Variable Anaconda options: environmentName as in anaconda3/env/environmentName. See https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
reset – Reset with terminate(pyenv) if true (default: false)
- OUTPUTS:
pyEnvironment – Python environment returned by pyenv
pySearchPath – Python search path (for loading packages)