Windows Subsystem for Linux (Windows)

This is a real Linux subsystem for you to run OpenSeesPy Linux version on Windows.

Install the Windows Subsystem for Linux

Follow the instruction on here to install Windows Subsystem for Linux on Windows 10. There are a couple of Linux distributions available and Ubuntu is recommended. Once the Linux is installed, it will show as an application in the start menu.


Install Anaconda and start Jupyter Notebook

  • Run the subsystem from start menu and a terminal window will show.

  • Download Anaconda Linux version with command

    ~$ wget
  • Install Anconda Linux version with commands

    ~$ bash
    >>> Please answer 'yes' or 'no':
    >>> yes
    >>> Anaconda3 will not be installed into this location:
    [/home/username/anaconda3] >>> (enter)
  • Start Jupyter Notebook

    ~$ /home/username/anaconda3/bin/jupyter-notebook
  • Copy the address in red box to a web browser

    ../_images/wsljupyter.png ../_images/wsljupyter2.png

In Jupyter Notebook

Start a new notebook and then


In the command line (optional)

  • Run Anaconda with following command, where username is your username of your computer. Please use the username shown in last step

    ~$ /home/username/anaconda3/bin/python3.8
  • Install or Upgrade OpenSeesPy with commands

    ~$ /home/username/anaconda3/bin/python3.8 -m pip install openseespy
    ~$ /home/username/anaconda3/bin/python3.8 -m pip install --upgrade openseespy
  • Run OpenSeesPy

    First run Anaconda with

    ~$ /home/username/anaconda3/bin/python3.8

    Then import OpenSeesPy with

    import openseespy.opensees as ops
  • run OpenSeesPy scripts