Difference between revisions of "Python/SettingPaths"
(Created page with "===Setting up Python Paths=-== Python is a programming language that comes with 'batteries included', meaning there are many existing tools (called modules) for your use. For me...") |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | ===Setting up Python Paths= | + | === Setting up Python Paths === |
Python is a programming language that comes with 'batteries included', meaning there are many existing tools (called modules) for your use. For meteorological and climate data analysis, many of the tools have significant library dependencies, and it can be a challenge to build the modules (for instance netcdf requires the zlib compression libraries for HDF4/5 while grib requires the jasper libraries for compression). | Python is a programming language that comes with 'batteries included', meaning there are many existing tools (called modules) for your use. For meteorological and climate data analysis, many of the tools have significant library dependencies, and it can be a challenge to build the modules (for instance netcdf requires the zlib compression libraries for HDF4/5 while grib requires the jasper libraries for compression). | ||
− | Many of the modules have been built already and will work | + | Many of the modules have been built already and will work on our servers. |
In order to use these modules, you need to add the appropriate python path to you shell. | In order to use these modules, you need to add the appropriate python path to you shell. | ||
− | The easiest way to accomplish this is to add the following line somewhere in your . | + | The easiest way to accomplish this is to add the following line somewhere in your .modulerc file:: |
− | + | #%Module1.0 | |
+ | |||
+ | set version 1.0 | ||
+ | module load python/anaconda | ||
− | This | + | This will add a PYTHONPATH environment variable with all the python packages available at UIO. |
+ | |||
+ | |||
+ | |||
+ | [[Category:Tools]]<br/>[[Category:Software]]<br/>[[Category:Python]] |
Latest revision as of 10:21, 11 February 2015
Setting up Python Paths
Python is a programming language that comes with 'batteries included', meaning there are many existing tools (called modules) for your use. For meteorological and climate data analysis, many of the tools have significant library dependencies, and it can be a challenge to build the modules (for instance netcdf requires the zlib compression libraries for HDF4/5 while grib requires the jasper libraries for compression).
Many of the modules have been built already and will work on our servers.
In order to use these modules, you need to add the appropriate python path to you shell.
The easiest way to accomplish this is to add the following line somewhere in your .modulerc file::
#%Module1.0 set version 1.0 module load python/anaconda
This will add a PYTHONPATH environment variable with all the python packages available at UIO.