---
# System prepended metadata

title: Alphafold install(pip)

---

# Alphafold install(pip)

## Download python
* Python3.6
```
yum install -y python3
```
* upgrade pip
```
pip3 install --upgrade pip
```
* upgrade setuptools
```
python3 -m pip install --upgrade setuptools
```

## 建設python虛擬環境(optional)

```
yum update -y //更新和設置環境

yum install python3-devel //下載python3-devel

python3 -m venv pip-tensorflow //創建一個虛擬Python環境

source pip-tensorflow/bin/activate //激活虛擬環境
```

## Download Dependencies
* Abseil 
```
pip install absl-py
```
* Numpy1.16
```
pip install numpy==1.16
```
* Six1.12
```
pip install six==1.12
```
* Setuptools41.0.0
```
pip install setuptools==41.0.0
```
* Sonnet1.35
```
pip install dm-sonnet==1.35
```
* Tensorflow-probability0.7.0
```
pip install tensorflow-probability==0.7.0
```
* Tensorflow1.14
```
pip install tensorflow==1.14 

//測試
python3

import tensorflow as tf
import sonnet as snt
print("TensorFlow version {}".format(tf.__version__))
print("Sonnet version {}".format(snt.__version__))

//隱藏輸出警告
echo "export TF_CPP_MIN_LOG_LEVEL=2" >> .bash_profile
source .bash_profile
```

## Download Alphafold

* [Alphaflod github](https://github.com/deepmind/deepmind-research/tree/master/alphafold_casp13)
```
git clone https://github.com/deepmind/deepmind-research.git
```

## Download Input Data and Model Checkpoints
* Input data
```
wget https://storage.googleapis.com/alphafold_casp13_data/casp13_data.zip
```
* Model checkpoints
```
wget https://storage.googleapis.com/alphafold_casp13_data/alphafold_casp13_weights.zip
```

## MiniFold 

* [MiniFold](https://github.com/hypnopump/MiniFold)