首先安装依赖
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
修改阿里云默认源配置
# mv /root/.pip/pip.conf /root/.pip/pip.conf.bk
# vi /root/.pip/pip.conf
修改如下:
#-----------------------------------------------------------------
[global]
#index-url=http://mirrors.aliyun.com/pypi/simple/
index-url = https://pypi.python.org/simple/
[install]
#trusted-host=mirrors.aliyun.com
trusted-host=pypi.python.org
#-----------------------------------------------------------------