Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照教程安装python mac版本后,打开终端,输入python,报错 #29

Open
HanaIsTravelling opened this issue Jan 20, 2019 · 1 comment

Comments

@HanaIsTravelling
Copy link

如下,是我的终端页面输入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

好奇怪啊。。。求助啊。。。

@ohdroid
Copy link
Collaborator

ohdroid commented Jan 22, 2019

如下,是我的终端页面输入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版本可以用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants