I'm trying to import pyephem in python on my raspberry pi but I get the following error:
pi@ospi ~/downloads/pyephem-3.7.5.3 $ python
Python 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ephem
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ephem/__init__.py", line 5, in <module>
import ephem._libastro as _libastro
ImportError: No module named _libastro
I installed the module using the following:
sudo apt-get install python-dev
sudo apt-get install python-pip
sudo pip install pyephem
Any ideas?