I am trying to install couchapp from the terminal on macOs High Sierra.
I have python 2.7.10 installed (by default) and I run $ pip2 install couchapp
according to the couchapp documentation.
This is the error I get:
src/watchdog_fsevents.c:22:10: fatal error: 'Python/Python.h' file not found
#include <Python/Python.h>
^~~~~~~~~~~~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Failed building wheel for watchdog
Here is what I have when I do $ ls
in /System/Library/Frameworks/Python.framework/
- Examples
- Modules
- Python
- Resources
- Versions
- module.map
What I have tried so far:
- Check that Xcode CL Tools are already installed running
$ xcode-select --install
- Try to use pip3 instead of pip2 (I have installed python 3.6 with Homebrew), but I get the same error message.
Do you have any idea? I have read other posts but they did not solve my problem.
Thank you
python-dev
if not installed. Hopefully helps. – Sumit Jha Mar 22 '18 at 20:39python-dev
package for MacOS. Rather, there, these headers are included with XCode. – Charles Duffy Mar 22 '18 at 20:40/System/Library/Frameworks/Python.framework/Versions/2.7/include/
to$PATH
and maybebrew reinstall python
could help. – Sumit Jha Mar 22 '18 at 20:43