sanic:安装py3.6与sanic套装 首先删除原来的Py3.4 ``` apt-get remove python3 apt-get remove python3.4 apt-get remove python3-minimal apt-get remove python3.4-minimal ``` 然后添加源: ``` apt-get install software-properties-common add-apt-repository ppa:jonathonf/python-3.6 apt-get update apt-get install python3.6 apt-get install python3.6-dev wget https://bootstrap.pypa.io/get-pip.py python3.6 get-pip.py ``` 安装GCC 4.9 ``` add-apt-repository ppa:ubuntu-toolchain-r/test apt-get update apt-get install gcc-4.9 g++-4.9 cpp-4.9 cd /usr/bin ln -s gcc-4.9 gcc ln -s g++-4.9 g++ ln -s cpp-4.9 cpp rm /usr/bin/x86_64-linux-gnu-gcc ln -s /usr/bin/gcc-4.9 /usr/bin/x86_64-linux-gnu-gcc # 还不行? 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 ``` 安装sanic套装 ``` python3.6 -m pip install sanic python3.6 -m pip install jinja2 python3.6 -m pip install aioredis python3.6 -m pip install aiomysql ``` 来自 大脸猫 写于 2017-06-27 14:55 -- 更新于2020-10-19 13:06 -- 0 条评论