执行以下命令就可以将python3当作默认python
pip 也需要重新安装
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
apt-get install python3-pip
其它操作
apt-get install build-essential python3-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev
apt-get install python3-dev default-libmysqlclient-dev build-essential
关注公众号「Python之禅」,回复「1024」免费获取Python资源