Anaconda 无法启动Jupyter笔记本电脑:';似乎不是IPv4或IPv6地址';

Anaconda 无法启动Jupyter笔记本电脑:';似乎不是IPv4或IPv6地址';,anaconda,jupyter-notebook,Anaconda,Jupyter Notebook,我无法启动配置为运行远程VM(Redhat Enterprise Linux 6.x)的Jupyter笔记本(使用Anaconda 4.5.11安装)。“jupyter\u notebook\u config.py”配置了以下属性: c、 NotebookApp.ip='*' 返回的错误如下所示: 在处理上述异常期间,发生了另一个异常: Traceback (most recent call last): File "/opt/arnab/conda_pkg/python-skl/lib/p

我无法启动配置为运行远程VM(Redhat Enterprise Linux 6.x)的Jupyter笔记本(使用Anaconda 4.5.11安装)。“jupyter\u notebook\u config.py”配置了以下属性:

c、 NotebookApp.ip='*'

返回的错误如下所示:

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
  File "/opt/arnab/conda_pkg/python-skl/lib/python3.7/site-packages/notebook/notebookapp.py", line 869, in _default_allow_remote
    addr = ipaddress.ip_address(self.ip)
  File "/opt/arnab/conda_pkg/python-skl/lib/python3.7/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address
似乎是Jupyter笔记本本身的一个bug()

将属性值从“*”更改为“0.0.0.0”解决了以下问题:

c、 NotebookApp.ip='0.0.0.0'


离开
c.NotebookApp.ip='*'
时的另一个解决方法是设置
c.NotebookApp.allow\u remote\u access=True