It is recommended to install the package under the anaconda environment. Under the anaconda prompt, one can create a preferred directory and then run

git clone
cd BoltzTraP2/
setenv CC g++

Edit the file, depending on your CC environment, use

required_compile_flags = [“-std=c++11”], or
required_compile_flags = [“-std=c++0x”]

Last, run

pip install -e . #for develop version (recomended)
#if failed, try
python install #or
python develop #for develop version (recomended)