Girls-In-AI
Girls-In-AI copied to clipboard
按照教程安装python mac版本后,打开终端,输入python,报错
如下,是我的终端页面输入python的样子 Last login: Sun Jan 20 16:19:54 on console localhost:~ apple$ python Python 3.7.1 (default, Dec 14 2018, 13:28:58) [Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information.
python 3 --version File "
", line 1 python 3 --version ^ SyntaxError: invalid syntax
好奇怪啊。。。求助啊。。。
如下,是我的终端页面输入python的样子 Last login: Sun Jan 20 16:19:54 on console localhost:~ apple$ python Python 3.7.1 (default, Dec 14 2018, 13:28:58) [Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information.
python 3 --version File "", line 1 python 3 --version ^ SyntaxError: invalid syntax
好奇怪啊。。。求助啊。。。
终端里输入python就可以了,显示的是3.7.1版本 出错的命令是 是python3 之间有个空格。 可以在终端里输入python后按一下键盘上的Tab键,看看有哪些python版本可以用