Python Tools Setup¶
The preferred method to setup the GEOSX python tools is to run the following command in the build directory:
This will attempt to install the required packages into one of the following locations (in order of preference):
- The python distribution indicated via the PYTHON_POST_EXECUTABLE cmake variable
- The python distribution indicated via the Python3_EXECUTABLE cmake variable (also used by pygeosx)
- The python distribution that was used to configure GEOSX
If the user does not have write access for the target python distribution, the installation will attempt to create a new virtual python environment (Note: this requires that the virtualenv package be installed). If any package dependencies are missing, then the install script will attempt to fetch them from the internet using pip. After installation, these packages will be available for import within the associated python distribution, and a set of console scripts will be available within the GEOSX build bin directory.
Alternatively, these packages can be installed manually into a python environment using pip:
cd GEOSX/src/coreComponents/python/modules/geosx_mesh_tools_package pip install --upgrade . cd ../geosx_xml_tools_package pip install --upgrade . # Etc.