将 jupyter notebook 的路径添加到 Windows 环境变量中

时间:2020-12-31 18:05:21

标签: windows apache-spark pyspark jupyter-notebook environment-variables

Jupyter notebook 是通过 anaconda 在 Windows 10 上安装的。 我想直接从笔记本运行 pyspark。为此,我使用了以下两条说明:

set PYSPARK_DRIVER_PYTHON=jupyter
set PYSPARK_DRIVER_PYTHON_OPTS=notebook

但是当我在命令行中输入:pyspark 时,我得到的错误信息是: 'jupyter' is not recognized as an internal or external command

我找不到它的正确路径,因为当我通过 Open file location 搜索它时,它会将我带到 anaconda python 位置而不是 jupyter notebook。 有什么帮助吗?

注意:当我打开 anaconda cmd 并执行上面的命令时,我可以运行 pyspark 但在关闭 cmd 并再次打开它后,它不再运行了

0 个答案:

没有答案