1. Create virtual environment
$ cd ~
$ virtualenv fandosVirtualEnv
2. Change your source to tsinghua source
Create a .pip director in /home and a file in .pip named pip.conf and paste the following code.
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
3. Add a line in your ~/.bashrc file
source ~/fandosVirtualEnv/bin/activate
Done!