1. Download the deb file from the official website
https://pinyin.sogou.com/linux/?r=pinyin
2. Prerequisites for installation
sudo apt-get install fcitx-libs fcitx-libs-qt libqtwebkit4 libqt4-opengl
3. Installation
sudo dpkg -i sogoupinyin_2.2.0.0102_amd64.deb
Reboot the system.