Installazione Python: differenze tra le versioni
Da MeteOceanWiki.
(13 revisioni intermedie di un utente non mostrate) | |||
Riga 5: | Riga 5: | ||
* eseguirlo e poi installare gli altri pacchetti | * eseguirlo e poi installare gli altri pacchetti | ||
− | ./conda install -c conda-forge matplotlib pygrib cdo netcdf4 | + | ./conda update -n base conda |
− | ./conda install -c | + | ./conda update --all |
+ | ./conda install -c conda-forge matplotlib pygrib | ||
+ | ./conda install -c conda-forge python-cdo | ||
+ | ./conda install -c conda-forge cdo | ||
+ | ./conda install -c conda-forge netcdf4 xarray dask bottleneck pandas | ||
+ | ./conda install -c conda-forge basemap basemap-data-hires | ||
+ | ./conda install -c conda-forge numpy | ||
+ | ./conda install -c conda-forge joblib proj4 geos | ||
+ | ./conda install -c conda-forge mako | ||
+ | ./conda install -c conda-forge cartopy seaborn | ||
+ | ./conda install -c conda-forge openblas | ||
− | per geodicca e pygrads scaricare i pacchetti e poi installarli col comando | + | per geodicca e pygrads https://sourceforge.net/projects/opengrads/files/ scaricare i pacchetti e poi installarli col comando |
/opt/anaconda2/bin/python setup.py install | /opt/anaconda2/bin/python setup.py install |
Versione attuale delle 17:21, 27 ott 2019
E' preferibile utilizzare Anaconda in quanto l'installazione rimane coerente nel tempo e non è affetta da eventuali scostamenti di aggiornamenti
- scaricare lo script dal sito di Anaconda e cambiare la directory di destinazione
- eseguirlo e poi installare gli altri pacchetti
./conda update -n base conda ./conda update --all ./conda install -c conda-forge matplotlib pygrib ./conda install -c conda-forge python-cdo ./conda install -c conda-forge cdo ./conda install -c conda-forge netcdf4 xarray dask bottleneck pandas ./conda install -c conda-forge basemap basemap-data-hires ./conda install -c conda-forge numpy ./conda install -c conda-forge joblib proj4 geos ./conda install -c conda-forge mako ./conda install -c conda-forge cartopy seaborn ./conda install -c conda-forge openblas
per geodicca e pygrads https://sourceforge.net/projects/opengrads/files/ scaricare i pacchetti e poi installarli col comando
/opt/anaconda2/bin/python setup.py install
Altrimenti l'installazione tradizionale è la seguente
zypper install python python-devel ipython python-pip python-scipy python-scipy python-matplotlib hdf5 hdf5-devel jasper netcdf netcdf-devel zypper install python-grib_api proj geos geos-devel libgeos python-geos zypper install R-base-devel R-base python-singledispatch readline-devel
zypper addrepo http://download.opensuse.org/repositories/science/openSUSE_Leap_42.1/science.repo zypper refresh zypper install python-pyproj zypper -n install pandoc
zypper at http://download.opensuse.org/repositories/graphics/openSUSE_Leap_42.2 graphics zypper refresh zypper -n install OpenSCAD