12

ubuntu 默认使用 python3

 2 years ago
source link: https://foofish.net/python3-ubuntu.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

ubuntu 默认使用 python3

执行以下命令就可以将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资源

python之禅

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK