尽管安装了jupyter笔记本,Mac也无法运行

时间:2019-12-04 02:10:02

标签: python macos jupyter-notebook

我已经安装了jupyter笔记本,但是当我尝试打开它时,出现此错误。知道为什么吗?

<xsl:accumulator name="section-nr" as="xs:integer*" 
             initial-value="0">
    <xsl:accumulator-rule match="section" phase="start" 
             select="0, head($value)+1, tail($value)"/>
    <xsl:accumulator-rule match="section" phase="end" 
             select="tail($value) (:pop:)"/>
</xsl:accumulator>


<xsl:template match="section">
  <p>
    <xsl:value-of select="reverse(tail(accumulator-before('section-nr')))" 
              separator="."/>
  </p>
  <xsl:apply-templates/>
</xsl:template>

2 个答案:

答案 0 :(得分:1)

一种解决方案是切换到python3。

我建议检查是否通过运行安装了python3 python3 --version

如果已安装,pip3 install --upgrade pippip3 install jupyter应该可以解决您的问题,因为jupyter之后应在其内核中使用python 3。

如果未安装python3,建议安装它,然后重复上述步骤。

答案 1 :(得分:0)

不在上面! 1轮 <<酒桶安装水蟒>> 在终端上

成功安装了蟒蛇之后...

2-运行 << export PATH =“ / usr / local / anaconda3 / bin:$ PATH” >> 在终端上

3次 <<来源〜/ .zshrc >> 在终端上,然后关闭然后再次打开终端

4-现在运行 《 jupyter笔记本》 在终端上

现在笔记本将在此路径上显示: http://localhost:8888/tree

仅此而已