Jump to content
IPS Community Suite 简体中文
Sign in to follow this  

Python 3 as Default Python on Ubuntu

Recommended Posts


nano ~/.bashrc


alias python=python3


source ~/.bashrc


python -version

会看到现在的 Python 已经是 Python 3 了。

如法炮制,pip 也可以指向 pip3。

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this