Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.47 KB

README_INSTALL_OCTAVE_AND_OCT2PY.md

File metadata and controls

55 lines (33 loc) · 1.47 KB

Install Octave and oct2py

Octave for Windows 10

  1. Download octave.

  2. Install octave, and write down the installation destination path.

    C:\Program Files\octave-7.3.0-w64
    
  3. From the installation destination path, find the octave client path, that is the path to octave-cli.exe under mingw64\bin\ folder. Copy the path.

    C:\Program Files\octave-7.3.0-w64\mingw64\bin\octave-cli.exe
    
  4. Open Environment Variable. You can access it by pressing Windows-Key, type edit the system environment variables, and press Enter to search.

  5. Click Environment Variables.

  6. Under System variables, click New....

  7. Fill the Variable name with OCTAVE_EXECUTABLE, and Variable value with the octave client path.

    Variable name: OCTAVE_EXECUTABLE

    Variable value: C:\Program Files\octave-7.3.0-w64\mingw64\bin\octave-cli.exe

  8. Restart (not shutdown, but restart) the computer to make os.environ recognize the new path.

oct2py

  1. Install oct2py from python PyPI using a command prompt.

    pip install oct2py
  2. Check octave and oct2py installation by running the below python code.

    from oct2py import octave
    
    octave.path()