Python Environment Setup Guide

1. Installing Anaconda3

  1. Download Anaconda3
$ wget
  1. Run the installer (Installer requires bzip, please install it if you don’t have it)
$ bash ./

Choose “Yes” for question “Do you wish the installer to initialize Anaconda3 by running conda init?”. More information about Anaconda can be found from Anaconda Documentation.

  1. Add Anaconda3 to PATH, for example:
$ export PATH=/home/<user>/anaconda3/bin:$PATH
$ . /home/<user>/anaconda3/etc/profile.d/

2. Setting up xf_hpc environment to include all conda packages used by xf_hpc L1 primitive testing infrastructure.

Please run following command under directory xf_hpc/.

$ conda create -n xf_hpc python=3.7 numpy
$ conda activate xf_hpc

3. Deactivate xf_hpc environment after testing

Note: Please don’t take this step if you intend to run L1 primitives’ testing process. You only take it after you’ve finished all testing.

$ conda deactivate