-
Notifications
You must be signed in to change notification settings - Fork 230
Installation Issues
Fabio Luporini edited this page Aug 21, 2023
·
6 revisions
...
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
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.
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:
- 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
- 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