Installation#

Environment Setup#

The environment setup involves configuring the dependencies with specific versions.

  • Method 1: Configure Environment Using Offline Package

    Download hifast_env.centos7.x86_64.v1.tar.gz (for Most Linux distributions) and (threadpoolctl-3.1.0-py3-none-any.whl) from https://pan.cstcloud.cn/s/QmkBVYgyRO8.

    Install the environment package (this step is only required once):

    $ mkdir ~/hifast_env
    $ tar -zxvf hifast_env.centos7.x86_64.v1.tar.gz -C ~/hifast_env
    $ source ~/hifast_env/bin/activate
    (hifast_env) $ conda-unpack
    (hifast_env) $ # install additional package
    (hifast_env) $ pip install threadpoolctl-3.1.0-py3-none-any.whl
    (hifast_env) $ source ~/hifast_env/bin/deactivate
    

    To activate the environment:

    $ source ~/hifast_env/bin/activate
    

    To deactivate the environment:

    (hifast_env) $ source ~/hifast_env/bin/deactivate
    
  • Method 2: Environment Configuration with Conda

    If conda is not installed, install miniconda3 or Miniforge3. Use the configuration file hifast_env.yml (For ARM architecture, use hifast_env.ARM64.yml).

    • To create a new environment:

      $ conda env create -n hifast_env --file hifast_env.yml
      

      Replace hifast_env with a preferred name. Then, activate the environment:

      $ conda activate hifast_env
      

      Or

      $ source activate hifast_env
      
    • To update an existing environment:

      $ conda env update --file hifast_env.yml -n ENV_NAME
      

      Substitute ENV_NAME with the name of an existing conda environment. Use base for the main environment.

Installing hifast#

Download the hifast installation package from https://pan.cstcloud.cn/s/IfTYaVysS6k. The file is typically named hifast-XXX.whl (XXX represents the version number; avoid altering the file name).

To install:

(hifast_env) $ # Replace hifast-XXX.whl with the actual file name of the downloaded package
(hifast_env) $ python -m pip install hifast-XXX.whl --upgrade

To uninstall:

(hifast_env) $ python -m pip uninstall hifast

Data Dependencies#