Installation on Windows

We provide binary pip and Anaconda packages for the Windows platform, for all Python versions supported by Pyrocko. If MSVC is installed, it is also possible to install Pyrocko from source.

Limitations

Most of Pyrocko works on Windows as on Linux and macOS, and it is tested regularly on Windows. There are some limitations, though:

  • The Fomosto backends (QSEIS, QSSP, PSGRN/PSCMP, etc.), needed to compute Green’s function stores, are not available for Windows. Compute the stores on Linux or macOS. Using existing stores works on Windows.

  • Of the GUI applications, Snuffler is tested regularly on Windows, Sparrow is not.

  • The quick installation with pvc (see Installation) needs a bash or zsh terminal and is not available on Windows.

  • Python on Windows starts subprocesses differently than on Linux. Scripts using multiprocessing must protect their main code with if __name__ == '__main__':.

If you run into problems specific to Windows, please let us know in the Windows channel on the Pyrocko Hive.

From precompiled Anaconda packages

If you are using Anaconda under Windows, see Installation with conda.

From precompiled PIP packages

If you want to use PIP to install Pyrocko under Windows, see Installation with pip.

From source

In this example installation, we assume that you are using Anaconda/Miniconda to manage your Python environment. Other setups may also be possible as long as you can run git, python, pip, and patch from your Windows command line and you have a C compiler installed.

  1. Install Build Tools for Visual Studio 2022. You don’t need the complete Visual Studio 2022. In Build tools, install C++ build tools and ensure the latest versions of MSVC v143 - VS 2022 C++ x64/x86 build tools and the Windows SDK are checked.

  2. On the Windows command line, run:

    git clone https://git.pyrocko.org/pyrocko/pyrocko.git
    cd pyrocko
    python install.py deps conda
    python install.py user
    

For instructions on how to install Pyrocko on other systems or if the installation with the above procedure fails, see System specific installation instructions or Detailed installation instructions.