gpt4 book ai didi

Python - Jupyter 无法识别 Unix 命令

转载 作者:可可西里 更新时间:2023-11-01 11:24:17 25 4
gpt4 key购买 nike

我已经为类(class)安装了 Git Bash、python 3.6 和 Anaconda,这要求我在 Jupyter 中使用 Unix 命令,例如 !ls、!cat、!head 等。但是,对于这些命令中的每一个,我得到(例如):

'ls' is not recognized as an internal or external command, operable program or batch file.

我使用的是 Windows 10。我该怎么做才能继续学习这门类(class)?谢谢!

最佳答案

请不要使用类(class)中提到的 !ls。在 jupyter 笔记本中使用 %ls,它工作正常。希望对您有所帮助。

关于Python - Jupyter 无法识别 Unix 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45599187/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com