2

I'm using Python 3.6 on Anaconda, and I need to use the ephem package. I used the command :

conda install -c anaconda ephem 

It returns an error, saying that epecifications were found in conflict : ephem requires Python 2.6.

Is there a way I can use ephem on Python 3.6 with Anaconda?

Clément F
  • 3,535
  • 6
  • 18
  • 26
  • Did you try `pip install ephem` ? – Itay Livni Jul 20 '17 at 17:29
  • No. I heard that mixing pip and conda could lead to bad results. – Clément F Jul 20 '17 at 17:47
  • 1
    Maybe. (1) I have been doing it for a couple of years without any problems (2) If you are really set on installing using conda, then you can make your own [conda-forge](https://conda-forge.org/) – Itay Livni Jul 20 '17 at 18:18
  • I tried with pip, and it returned an error too. Apparently it requires Visual C++ compilation, which is not available on my corporate laptop. – Clément F Jul 26 '17 at 09:49
  • I followed this [post][https://stackoverflow.com/questions/16024443/installing-ephem-package-in-python-3?rq=1], it worked well – Clément F Jul 26 '17 at 11:22

1 Answers1

2

I used the following to successfully install ephem for Python 3.6 (Running Spyder with Python 3.6):

conda install -c astropy pyephem

I found the info at this link from Anaconda.