Shell正在选择Python 2.7,但不是3.7(Shell is selecting Python 2.7, but not 3.7)
我有Python 3.7 ,我有一个Python 2.7.
但是当我使用Python Launcher时,它使用2.7而不是3.7。
如何使用Python 3.7 ? 操作系统 - Mac OS。
I have Python 3.7 and I had a Python 2.7.
But when I am using Python Launcher it uses 2.7 not 3.7.
How to use Python 3.7? OS - Mac OS.
最满意答案
如果你想在终端中运行命令python时默认使用python 3.7,你可以在〜/ .bashrc中添加一个别名
alias python=python3.7bashrc是一个shell脚本,bash在交互式启动时运行。 您可以在主目录中找到bashrc。
If you want python 3.7 as default when you run command python in terminal, you can add an alias in ~/.bashrc
alias python=python3.7bashrc is a shell script that bash runs whenever it is started interactively. You can find bashrc in your home directory.
更多推荐
发布评论