Page 1 of 1

ephem module not found

Posted: Sun Jul 01, 2018 7:51 am
by TawnyOwl
I want to use ephem :
https://pypi.org/project/ephem/

pip install ephem

in Python :
import ephem

When I run the script, I get the message :
ImportError: No module named 'ephem'

What am I doing wrong ?

Re: ephem module not found

Posted: Sun Jul 01, 2018 7:54 am
by DirkS
Do you use Python 2 or 3?
If it's Python 3 then you have to use pip3 to install modules

Re: ephem module not found

Posted: Sun Jul 01, 2018 7:56 am
by B.Goode
Are you using the python ( = Python2) interpreter, or IDLE?

Or python3/IDLE3 ?

You appear to have installed the module only for the former.

(Same overall question as the previous reply, submitted as I was typing.. )

Re: ephem module not found

Posted: Sun Jul 01, 2018 9:24 am
by TawnyOwl
OK, thank you, it works now (pip3).