Installation ************************ Library Installation -------------------- You must have GNU Octave installed and in your PATH (see instructions below). The library is only known to work with Octave 4.0+. Additionally, you must have the Numpy and Scipy libraries for Python installed. The simplest way to get them is to use the Anaconda_ distribution. Once the dependencies have been installed, run: .. code-block:: bash $ pip install oct2py If using conda, it is available on conda-forge: .. code-block:: bash $ conda install -c conda-forge oct2py GNU Octave Installation ----------------------- - On Linux platforms, try your package manager, or follow the instructions from Octave_. You must also have gnuplot installed, and gnuplot-x11 or gnuplot-qt, if available. - On OSX, the recommended methods are listed on this wiki_. - On Windows, download the latest MinGW or .NET version_. Cygwin is *NOT* supported. The MinGW version requires the 7zip_ program for installation. Make sure to install gnuplot if prompted. Finally, to add Octave to your path. You can do so from the Environmental Variables dialog for your version of Windows, or set from the command prompt:: setx PATH "%PATH%; Where the folder has the file "octave.exe". If you see the message: "WARNINGS: The data being saved is truncated to 1024 characters" It means your PATH variable is too long. You'll have to manually trim in in the Windows Environmental Variables editor. - To test, open a command window (or terminal) and type: `octave`. If Octave starts, you should be good to go. - Alternatively, you can specify the path to your Octave executable by creating an `OCTAVE_EXECUTABLE` environmental variable. .. _Anaconda: https://www.continuum.io/downloads .. _pip: http://www.pip-installer.org/en/latest/installing.html .. _Octave: http://www.gnu.org/software/octave/doc/interpreter/Installation.html .. _wiki: http://wiki.octave.org/Octave_for_MacOS_X .. _version: https://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/ .. _7zip: http://portableapps.com/apps/utilities/7-zip_portable