Pour les Spice kernels, il est ncecessaire d’installer une version assez recente de python3

Sur CentOS 7, la version la plus recente est la 3.6.

Elle doit etre installee depuis le depot IUS : Inline with Upstream Stable

Installation depot IUS

$ ssh solar@rosina1
$ su
$ yum install install https://centos7.iuscommunity.org/ius-release.rpm

Installation python 3.6

$ yum install python36u
==============================================================================
 Package                          Architecture                         Version
==============================================================================
Installation :
 python3                          x86_64                               3.6.8-10.el7
Installation pour dépendances :
 python3-libs                     x86_64                               3.6.8-10.el7
 python3-pip                      noarch                               9.0.3-5.el7
 python3-setuptools               noarch                               39.2.0-10.el7
$ python3.6 -V
Python 3.6.8
$ python3 -V
Python 3.6.8

Creation venv

$ ssh solar@rosina1
$ python3 -m venv py3.venv

Activation du venv

$ source py3.venv/bin/activate

Installation spiceypy

$ source py3.venv/bin/activate
$ pip search spiceypy
(py3.venv) [solar@rosina1 ~]$ pip search spiceypy
spiceypy (3.0.1)  - A Python Wrapper for the NAIF CSPICE Toolkit
You are using pip version 9.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Mise a jour du pip du venv

$ pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 782kB/s
Installing collected packages: pip
  Found existing installation: pip 9.0.3
    Uninstalling pip-9.0.3:
      Successfully uninstalled pip-9.0.3
$ pip install spiceypy
ollecting spiceypy
  Downloading https://files.pythonhosted.org/packages/ce/4a/1b6d775ecf1c36d9c3751663a0ce6a0471a8e189837790e5674991ea99eb/spiceypy-3.0.1.tar.gz (241kB)
     |████████████████████████████████| 245kB 1.8MB/s
Collecting numpy>=1.17.0
  Downloading https://files.pythonhosted.org/packages/62/20/4d43e141b5bc426ba38274933ef8e76e85c7adea2c321ecf9ebf7421cedf/numpy-1.18.1-cp36-cp36m-manylinux1_x86_64.whl (20.1MB)
     |████████████████████████████████| 20.2MB 3.7MB/s
Installing collected packages: numpy, spiceypy
    Running setup.py install for spiceypy ... done
Successfully installed numpy-1.18.1 spiceypy-3.0.1