Skip to content

Conversation

@tiankaima
Copy link
Member

No description provided.

@tiankaima
Copy link
Member Author

@RTXUX @MirageTurtle 101 的仓库我没权限,能不能直接给个 Owner

@taoky
Copy link
Member

taoky commented Dec 24, 2025

要不要补充一下 python-is-python3 这个包?

MirageTurtle
MirageTurtle previously approved these changes Dec 24, 2025
Copy link
Contributor

@MirageTurtle MirageTurtle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiankaima
Copy link
Member Author

要不要补充一下 python-is-python3 这个包?

我去看下最新的这些发行版里还有多少 python2 吧

@MirageTurtle
Copy link
Contributor

@RTXUX @MirageTurtle 101 的仓库我没权限,能不能直接给个 Owner

加了 linux101 team 的权限。

@taoky
Copy link
Member

taoky commented Dec 24, 2025

要不要补充一下 python-is-python3 这个包?

我去看下最新的这些发行版里还有多少 python2 吧

即使是 Debian 13 这个包也还是要的,否则 python 这个命令会不存在(虽然仓库里应该没有 python2 了)

@tiankaima
Copy link
Member Author

要不要补充一下 python-is-python3 这个包?

我去看下最新的这些发行版里还有多少 python2 吧

即使是 Debian 13 这个包也还是要的,否则 python 这个命令会不存在(虽然仓库里应该没有 python2 了)

如果是这个 usecase 的话我觉得应该用 shell alias,全局脚本其实就应该指定 python3?

@taoky
Copy link
Member

taoky commented Dec 24, 2025

要不要补充一下 python-is-python3 这个包?

我去看下最新的这些发行版里还有多少 python2 吧

即使是 Debian 13 这个包也还是要的,否则 python 这个命令会不存在(虽然仓库里应该没有 python2 了)

如果是这个 usecase 的话我觉得应该用 shell alias,全局脚本其实就应该指定 python3?

考虑到现在几乎没有 python2 了,装这个包是合理的(而且我觉得也应该默认预装),不过可能某些精简环境没有,可能给人带来困惑,所以我感觉提一下比较好。

@iBug
Copy link
Member

iBug commented Dec 24, 2025

建议提一下 python-is-python3 这个包,用于日常使用命令行 shell 时通过 python 命令启动 Python 3。

我也认为写脚本时(不论是 .sh 的内容还是 .py 的 shebang line)都应该直接指定 python3

最后可以对 Python 2 补充一句「由于已淘汰多年,所以本教程不再做更多介绍」之类的话。

@tiankaima
Copy link
Member Author

大概这样?

@tiankaima
Copy link
Member Author

aw 还要说一下这个内容实际上我先过了一遍 Gemini 3 Flash。那几个错别字和 macOS 都是它改的。

也许应该加一个 Co-authored-by gemini 什么的

@tiankaima tiankaima merged commit 80f102a into ustclug:master Dec 25, 2025
1 check passed
@tiankaima tiankaima deleted the fix/ch07-cleanup branch December 25, 2025 04:27
github-actions bot pushed a commit that referenced this pull request Dec 25, 2025
Tiankai Ma: [80f102a] Ch07: typo fixes, remove python2, modern tools (#106)
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

Successfully merging this pull request may close these issues.

4 participants