jupyter notebook在Mac上安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jupyter notebook在Mac上安装相关的知识,希望对你有一定的参考价值。

    在mac上安装jupyter notebook还算顺利,主要是借鉴了mybefly的分享文档,这里讲安装过程使用到的步骤做一个记录:

    1.升级pip:sudo python -m pip install --upgrade --force pip

    2.安装setuptools:sudo pip install setuptools==33.1.1

    3.安装Python-dateutil:sudo pip install python-dateutil==2.2

    4.安装six:sudo pip install --ignore-installed six

    5.安装jupyter:sudo pip install jupyter

完成安装后,直接在终端输入jupyter notebook即可。

此次安装的过程中我并没有遇到mybefly所遇到的那些问题,若在安装中遇到cannot import name _thread及six问题,请参考http://www.cnblogs.com/mybefly/p/6526744.html。虽然没有遇到上面的问题,但是我在安装过程中还是出现了一些情况:

    1.operation not permitted

在安装Python-dateutil的时候出现了无权限错误,这是因为ios os x ei中增加了rootless功能,即sudo命令也不能操作部分文件目录,这时需要关闭rootless功能。重启mac,在启动的工程中按住command + r 两个键进入恢复模式,然后在恢复模式启动一个终端,输入csrutil disable(若要开启则输入csrutile enable)后重启电脑,问题解决。

    2.网络问题

其中在执行最后一步安装过程时出现了多次无法找到包的情况,遇见这种情况,调整一下网络环境多安装几次就行了。

本文出自 “abe” 博客,请务必保留此出处http://abezoo.blog.51cto.com/7223683/1956948

以上是关于jupyter notebook在Mac上安装的主要内容,如果未能解决你的问题,请参考以下文章

在Window和Mac 下安装Python3 和Jupyter notebook

Mac 安装jupyter notebook的过程

安装PyTorch后jupyter notebook中仍出现“No module named torch“

Jupyter Notebook-MAC安装及使用教程

安装PyTorch后jupyter notebook中仍出现“No module named torch“

安装 jupyter notebook 出现 ModuleNotFoundError: No module named 'markupsafe._compat' 错误