在 Windows 上通过命令行运行 Jupyter [英] Running Jupyter via command line on Windows
问题描述
我已经通过
$ pip install jupyter
安装工作正常,即使我重启了终端.
The installation works fine, even though I did restart the terminal.
但是想跑
$ jupyter notebook
给出以下错误
'jupyter' is not recognized as an internal or external command, operable program or batch file.
如何以及在哪里找到 Jupyter 的可执行文件?
How and where do I find the executable for Jupyter?
推荐答案
如果您绝对确定您的 Python 库路径在您的系统变量中(并且您可以在 pip install Jupyter 时找到该路径,您只需阅读一点),您仍然会遇到找不到或无法识别命令"的情况.Windows 中的错误,您可以尝试:
If you are absolutely sure that your Python library path is in your system variables (and you can find that path when you pip install Jupyter, you just have to read a bit) and you still experience "command not found or recognized" errors in Windows, you can try:
python -m notebook
至少对于我的 Windows(Windows 10 专业版),拥有 python -m
是我可以从命令行运行 Python 包而不会遇到某种错误的唯一方法
For my Windows at least (Windows 10 Pro), having the python -m
is the only way I can run my Python packages from command line without running into some sort of error
Fatal error in launcher: Unable to create process using ' "
或
Errno 'THIS_PROGRAM' not found
这篇关于在 Windows 上通过命令行运行 Jupyter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!