简体   繁体   中英

Creating Alias in Bash Profile for Python 3

So I have a bunch of versions of Python installed and want access to Python 3.3 simply by entering python into terminal. I've read other posts but, for whatever reason, on my machine, it opens Python 2.7 when I enter python even though I've changed the alias in my bash profile.

For reference, my bash profile has the line:

alias python='python3'

确保/bin/中的Python 3二进制文件实际上称为python3 ,还必须重新加载配置文件或退出终端以加载新的配置文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM