【发布时间】:2022-01-03 23:13:21
【问题描述】:
在连接到 GCP Spark 集群的 Jupyter 笔记本中,单元格 !pip3 install pyLDAvis==3.2.1 可以工作,但会发出警告:
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager.
It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
警告不是 pyLDAvis 独有的,其他软件包——甚至是 numpy——也会给出相同的警告。
以root 运行笔记本不应该是默认设置。如何将笔记本中的默认用户设置为singhj 而不是root?我已经通过IPython Configuration and customization 搜索任何提示。
配置:GCP Dataproc 中的新集群,默认 Jupyter 笔记本,没有任何自定义。
【问题讨论】:
标签: pyspark jupyter-notebook google-cloud-dataproc