poliastro requires the following Python packages:
- NumPy, for basic numerical routines
- Astropy, for physical units and time handling
- numba (optional), for accelerating the code
- jplephem, for the planetary ephemerides using SPICE kernels
- matplotlib, for orbit plotting
- scipy, for root finding and numerical propagation
- pytest, for running the tests from the package
poliastro is usually tested on Linux, Windows and OS X on Python 3.5 and 3.6 against latest NumPy.
The easiest and fastest way to get the package up and running is to install poliastro using conda:
$ conda install poliastro --channel conda-forge
We encourage users to use conda and the conda-forge packages for convenience, especially when developing on Windows.
If the installation fails for any reason, please open an issue in the issue tracker.
Alternative installation methods¶
If you don’t want to use conda you can install poliastro from PyPI using pip:
$ pip install numpy # Run this one first! $ pip install poliastro
At the time of writing, this installation process requires a development version of SciPy to succeed on Windows. To install it, please check out this link:
The complete command would be:
$ pip install --pre poliastro -f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com/
If these installation steps fail for you, please consider using conda.
Finally, you can also install the latest development version of poliastro directly from GitHub:
$ pip install https://github.com/poliastro/poliastro/archive/master.zip
This is useful if there is some feature that you want to try, but we did not release it yet as a stable version. Although you might find some unpolished details, these development installations should work without problems. If you find any, please open an issue in the issue tracker.