Skip to content

Installation Issues

Fabio Luporini edited this page Aug 21, 2023 · 6 revisions

Linux

Building pyrevolve without Python.h

...
  pyrevolve/crevolve.cpp:27:10: fatal error: Python.h: No such file or directory
     27 | #include "Python.h"
        |          ^~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
...

Solution

(sudo) apt-get install python3-dev 

OSX

Most OSX issues we've seen stem from compiler issues. Please make sure you have a functioning C/C++ compiler before trying to install/use Devito.

Windows

We test devito on Linux and MacOS, but not on Windows. However, we know that several users have successfully adopted one of the following approaches:

Windows Subsystem for Linux

  • Enable the windows subsystem for Linux following the instructions here
  • Get a working bash shell on ubuntu (through WSL)
  • Install conda and gcc
  • Proceed with the devito conda-based install instructions

Docker

  • Install Docker using the instructions here
  • Ensure that git config --global core.autocrlf false is set to prevent modification of line endings when cloning the repository
  • Proceed with the devito docker-based install instructions

Virtual Machine

  • Follow the instructions here to install Ubuntu inside a virtual machine on windows.
  • Install conda and gcc
  • Proceed with the devito conda-based install instructions
Clone this wiki locally