#download
wget -c https://files.pythonhosted.org/packages/5e/32/0108a85d9a91c18413e8492bea631725cdbc20b45970ef63e8d0020ef2da/MACS2-2.1.2.1.tar.gz
#install python 2.7.10
wget -c https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar -zxf Python-2.7.10.tgz
cd Python-2.7.10
./configure --prefix=/home/train/python-2.7.10
make
make install
cd
echo 'export PATH=/home/train/python-2.7.10/bin/:$PATH' >> ~/.bashrc_python-2.7.10
echo 'export PYTHONPATH=/home/train/python-2.7.10/include/:/home/train/python-2.7.10/lib/:$PYTHONPATH' >> ~/.bashrc_python-2.7.10
source ~/.bashrc_python-2.7.10
python --version
#install pip
wget -c https://bootstrap.pypa.io/get-pip.py
python get-pip.py
#instuall numpy
wunzip numpy-1.16.4.zip
wget -c https://files.pythonhosted.org/packages/d3/4b/f9f4b96c0b1ba43d28a5bdc4b64f0b9d3fbcf31313a51bc766942866a7c7/numpy-1.16.4.zip
unzip numpy-1.16.4.zip
cd numpy-1.16.4
python setup.py install
cd
tar -zxf MACS2-2.1.2.1.tar.gz
cd MACS2-2.1.2
python setup.py install #we suggest do not build a new path
echo 'source ~/.bashrc_python-2.7.10' >> ~/.bashrc_macs2