2

Trying to install ephem on linux, python 3.4.3.

I'm trying pip install ephem and I keep getting the following error.

extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory

I tried install libastro with the software manager but I still get the same error. What do I have to do to install ephem. Pyephem gives the same error.

confused
  • 1,283
  • 6
  • 21
  • 37

1 Answers1

4

Try to run this command :

sudo apt-get install python3-dev

And pip install again

ShellCode
  • 1,072
  • 8
  • 17