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

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  

×