Skip to content

Latest commit

 

History

History
90 lines (62 loc) · 3.01 KB

File metadata and controls

90 lines (62 loc) · 3.01 KB

Installation Steps

We recommend installing Anaconda

We recommend using Anaconda to manage your Python environment. Please follow the steps below to install Anaconda and set up the myecat environment:

Download and install Anaconda:

  • Visit the Anaconda website and download the installer for your operating system.
  • Follow the installation guide to complete the Anaconda installation.

Note: If you have already installed Anaconda on your system, you can ignore the instructions above.

Create and activate the myecat environment

# For Windows
conda create --name myecat --file requirements/conda-requirements-win-64.txt
# For Linux
conda create --name myecat --file requirements/conda-requirements-linux-64.txt

# Activate Environment
conda activate myecat

# Install additional dependencies
conda install scikit-learn-intelex

# For Windows
pip install -r requirements/pip-requirements-win-64.txt
# For Linux
pip install -r requirements/pip-requirements-linux-64.txt

Note: Use the appropriate conda-requirements and pip-requirements files based on your operating system:

  • For Windows: conda-requirements-win-64.txt and pip-requirements-win-64.txt
  • For Linux: conda-requirements-linux-64.txt and pip-requirements-linux-64.txt

Explanation: By default, conda will download packages from the defaults channel. If a package is not found in the defaults channel, conda will attempt to download it from the conda-forge channel. Note that the default Anaconda installation may not include the conda-forge channel. You can add it using the following command:

conda config --add channels conda-forge

Install our own packages and other necessary dependencies

  1. Install eqtools and csi in myecat
#For Linux
chmod +x install.sh
./install.sh

# For Windows
.\install.bat
  1. Install modified okada4py in myecat (See readme.md of okada4py for details)
# If you have not installed build in your environment.
pip install build

# Build and install; Only support install in python 3.7 and above with this way
python -m build
# The exact name of the .whl file will depend on your package version and Python version
pip install dist/okada4py-12.0.2-py3-none-any.whl

Install oneapi and config environment

  1. Download oneapi package
  2. Install oneapi
chmod +x l_mpi_oneapi_p_2021.11.0.49494_offline.sh
sudo ./l_mpi_oneapi_p_2021.11.0.49494_offline.sh
  1. Config environment
# If there are no oneAPI-related environment loading parameters in `~/.bashrc`, please add them manually.
# Intel MPI ifort
source ~/intel/oneapi/setvars.sh intel64

Testing

The installation has been tested on Windows 11 and Ubuntu 20.04.6. Support for other platforms is not guaranteed.