SaintKings-Mac-mini:.pip saintking$ pip install jupyter --user

Collecting jupyter

Downloading jupyter-1.0.0-py2.py3-none-any.whl

Collecting ipywidgets (from jupyter)

Downloading ipywidgets-7.0.3-py2.py3-none-any.whl (68kB)

100% |████████████████████████████████| 71kB 565kB/s

Collecting qtconsole (from jupyter)

Downloading qtconsole-4.3.1-py2.py3-none-any.whl (108kB)

100% |████████████████████████████████| 112kB 1.0MB/s

Collecting nbconvert (from jupyter)

Downloading nbconvert-5.3.1-py2.py3-none-any.whl (387kB)

100% |████████████████████████████████| 389kB 1.1MB/s

Collecting notebook (from jupyter)

Downloading notebook-5.2.0-py2.py3-none-any.whl (8.0MB)

100% |████████████████████████████████| 8.0MB 91kB/s

...

Successfully built pandocfilters terminado tornado simplegeneric configparser MarkupSafe scandir functools32

Installing collected packages: wcwidth, prompt-toolkit, decorator, scandir, pathlib2, pickleshare, pygments, ptyprocess, pexpect, backports.shutil-get-terminal-size, simplegeneric, enum34, ipython-genutils, traitlets, appnope, ipython, pyzmq, python-dateutil, jupyter-core, jupyter-client, singledispatch, certifi, backports-abc, tornado, ipykernel, functools32, jsonschema, nbformat, configparser, entrypoints, pandocfilters, testpath, webencodings, html5lib, bleach, MarkupSafe, jinja2, mistune, nbconvert, terminado, notebook, widgetsnbextension, ipywidgets, qtconsole, jupyter-console, jupyter

Successfully installed MarkupSafe-1.0 appnope-0.1.0 backports-abc-0.5 backports.shutil-get-terminal-size-1.0.0 bleach-2.1.1 certifi-2017.7.27.1 configparser-3.5.0 decorator-4.1.2 entrypoints-0.2.3 enum34-1.1.6 functools32-3.2.3.post2 html5lib-1.0b10 ipykernel-4.6.1 ipython-5.5.0 ipython-genutils-0.2.0 ipywidgets-7.0.3 jinja2-2.9.6 jsonschema-2.6.0 jupyter-1.0.0 jupyter-client-5.1.0 jupyter-console-5.2.0 jupyter-core-4.3.0 mistune-0.8 nbconvert-5.3.1 nbformat-4.4.0 notebook-5.2.0 pandocfilters-1.4.2 pathlib2-2.3.0 pexpect-4.2.1 pickleshare-0.7.4 prompt-toolkit-1.0.15 ptyprocess-0.5.2 pygments-2.2.0 python-dateutil-2.6.1 pyzmq-16.0.2 qtconsole-4.3.1 scandir-1.6 simplegeneric-0.8.1 singledispatch-3.4.0.3 terminado-0.6 testpath-0.3.1 tornado-4.5.2 traitlets-4.3.2 wcwidth-0.1.7 webencodings-0.5.1 widgetsnbextension-3.0.6

SaintKings-Mac-mini:.pip saintking$

ok,安装成功。

执行如下命令:jupyter notebook

SaintKings-Mac-mini:.pip saintking$ jupyter notebook

Traceback (most recent call last):

File "/Users/saintking/Library/Python/2.7/bin/jupyter-notebook", line 7, in <module>

from notebook.notebookapp import main

File "/Users/saintking/Library/Python/2.7/lib/python/site-packages/notebook/notebookapp.py", line 55, in <module>

raise ImportError(_("The Jupyter Notebook requires tornado >= 4.0, but you have %s") % tornado.version)

ImportError: The Jupyter Notebook requires tornado >= 4.0, but you have 3.1

报这个错,意思是tornado的版本过低了,查看一下.

SaintKings-Mac-mini:.pip saintking$ pip install tornado

Requirement already satisfied: tornado in /Library/Python/2.7/site-packages/tornado-3.1-py2.7.egg

果然是3.1.

先考虑卸载吧.

SaintKings-Mac-mini:.pip saintking$ pip uninstall tornado

Uninstalling tornado-3.1:
/Library/Python/2.7/site-packages/tornado-3.1-py2..egg
Proceed (y/n)? y
Exception:
Traceback (most recent call last):
File "/Users/saintking/Library/Python/2.7/lib/python/site-packages/pip/basecommand.py", line , in main
status = self.run(options, args)
File "/Users/saintking/Library/Python/2.7/lib/python/site-packages/pip/commands/uninstall.py", line , in run
requirement_set.uninstall(auto_confirm=options.yes)
File "/Users/saintking/Library/Python/2.7/lib/python/site-packages/pip/req/req_set.py", line , in uninstall
req.uninstall(auto_confirm=auto_confirm)
File "/Users/saintking/Library/Python/2.7/lib/python/site-packages/pip/req/req_install.py", line , in uninstall
paths_to_remove.remove(auto_confirm)
File "/Users/saintking/Library/Python/2.7/lib/python/site-packages/pip/req/req_uninstall.py", line , in remove
renames(path, new_path)
File "/Users/saintking/Library/Python/2.7/lib/python/site-packages/pip/utils/__init__.py", line , in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line , in move
rmtree(src)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line , in rmtree
rmtree(fullname, ignore_errors, onerror)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line , in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line , in rmtree
os.remove(fullname)
OSError: [Errno ] Permission denied: '/Library/Python/2.7/site-packages/tornado-3.1-py2.7.egg/EGG-INFO/dependency_links.txt'

发现是权限问题.找到目录后修改权限.

直接升级吧还是.

SaintKings-Mac-mini:tornado-3.1-py2.7.egg saintking$ pip install --upgrade tornado

就可以运行:jupyter notebook

SaintKings-Mac-mini:~ saintking$ jupyter notebook
[I ::31.696 NotebookApp] Writing notebook server cookie secret to /Users/saintking/Library/Jupyter/runtime/notebook_cookie_secret
[I ::32.697 NotebookApp] Serving notebooks from local directory: /Users/saintking
[I ::32.698 NotebookApp] active kernels
[I ::32.698 NotebookApp] The Jupyter Notebook is running at:
[I ::32.698 NotebookApp] http://localhost:8888/?token=b5960d3488f7dc8acc041488a8bffbbdb3e6ecb75854e278
[I ::32.698 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C ::32.699 NotebookApp] Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=b5960d3488f7dc8acc041488a8bffbbdb3e6ecb75854e278
[I ::36.113 NotebookApp] Accepting one-time-token-authenticated connection from ::
[W ::38.692 NotebookApp] GET /i18n/zh-CN/LC_MESSAGES/nbjs.json?v= (::) .46ms referer=http://localhost:8888/tree
[I ::45.748 NotebookApp] Creating new notebook in
[I ::46.763 NotebookApp] Writing notebook-signing key to /Users/saintking/Library/Jupyter/notebook_secret
[W ::49.092 NotebookApp] GET /i18n/zh-CN/LC_MESSAGES/nbjs.json?v= (::) .52ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python2
[W ::49.897 NotebookApp] GET /nbextensions/widgets/notebook/js/extension.js?v= (::) .14ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python2
[I ::52.269 NotebookApp] Kernel started: 656ac876-e477-4af6-a6b6-18693c5b6f6d
[W ::02.287 NotebookApp] Timeout waiting for kernel_info reply from 656ac876-e477-4af6-a6b6-18693c5b6f6d
[I ::04.814 NotebookApp] Adapting to protocol v5. for kernel 656ac876-e477-4af6-a6b6-18693c5b6f6d
[I ::19.079 NotebookApp] Starting buffering for 656ac876-e477-4af6-a6b6-18693c5b6f6d:F9ADF6B4B06C4D338B1B2F799EFD7ADC

mac安装jupyter的更多相关文章

  1. Mac安装jupyter(原ipython)方法

    用了Mac之后非常不习惯,很多东西都要查才能完成=-=之前Python用的sublime和ide,今天看教程安利了一个jupyter 记录下用Mac安装jupyter的过程: 1.像其他安装Mac自带 ...

  2. Mac 安装Jupyter notebook

    python:mac下自带Python 2.7.10 1.先升级了pip安装工具:sudo python -m pip install --upgrade --force pip 2.安装setupt ...

  3. mac篇---mac安装jupyter

    1.Jupyter搭建 pip install --user jupyter 如果是在python3中,则用如下命令: pip3 install --user jupyter 如下图所示: 2. Ju ...

  4. MAC安装python jupyter notebook

    介绍: Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言. Jupyter Notebook 的本质是一个 Web 应用 ...

  5. Mac安装ipython与jupyter

    Python从Python发展而来,更倾向于科学计算.互联网数据分析更喜欢用. 首先切换root用户: sudo su - pip3自动安装ipython yuchaodeMacBook-Pro:~ ...

  6. linux安装python3 ,安装IPython ,安装jupyter notebook

    安装python3    下载到 /opt/中 1.下载python3源码,选择3.6.7因为ipython依赖于>3.6的python环境wget https://www.python.org ...

  7. 《Python数据分析》环境搭建之安装Jupyter工具(一)

    (免责声明:本文档是针对Python有经验的用户,如果您对Python了解很少,或者从未使用,建议官方教程用Anaconda安装) 前期准备:Python环境 虽然Jupyter可以运行多种编程语言, ...

  8. mac安装tensorflow报错

    问题:mac安装tensorflow过程中,爆出oserror:permission denied 解决方案:关闭mac的sip,然后sudo安装 关闭sip的方法:重启mac,按住command+R ...

  9. Mac 安装activate-power-mode atom

    Mac 安装activate-power-mode atom 标签: atommac 2015-12-02 14:53 308人阅读 评论(0) 收藏 举报  分类: git(2)  版权声明:本文为 ...

随机推荐

  1. Java8系列 (七) CompletableFuture异步编程

    概述 Java8之前用 Future 处理异步请求, 当你需要获取任务结果时, 通常的做法是调用  get(long timeout, TimeUnit unit) 此方法会阻塞当前的线程, 如果任务 ...

  2. 使用ESP8266 打造一款物联网产品---新版ESP8266-RTOS-SDK(V3.1以上)串口使用指南

    问题背景: 使用乐鑫的ESP8266做一个物联网的项目,要使用串口0通信,串口1作为打印log.本来是一个非常简单的事情.没想到居然里面有个大坑.本着前任踩坑,后任抱娃的原则. 这里就做个记录,给后面 ...

  3. 学习笔记41_Spring.Net

    Spring.Net:由容器负责创建对象,容器读取配置文件来初始化对象,配置文件须符合 Spring.Net范式: 准备材料: Common.Loggin.dll,Spring.Core.dll 第一 ...

  4. [考试反思]1029csp-s模拟测试93:殇逝

    并不是把它消成上三角矩阵 停止! 思考, 回顾. 疑惑? 遗忘… 一直只是在匆忙的赶进度,实际上的确是一点也不扎实. T1,裸的偏序,想了一个多小时什么也没想到,只打了$O(n^2)$ 难道之前学的就 ...

  5. [考试反思]0902NOIP模拟测试35:摆动

    skyh/Mr.zkt214 cbx204 6个200 4个180 172 162 我:rank16,160 呃,可以看到这个分差.... 对了教练说了两句话需要记录一下: 1.不要因为一时情绪而作出 ...

  6. 手把手教你定制标准Spring Boot starter,真的很清晰

    写在前面 我们每次构建一个 Spring 应用程序时,我们都不希望从头开始实现具有「横切关注点」的内容:相反,我们希望一次性实现这些功能,并根据需要将它们包含到任何我们要构建的应用程序中 横切关注点 ...

  7. 来探讨一下最近面试问的ThreadLocal问题

    中高级阶段开发者出去面试,应该躲不开ThreadLocal相关问题,本文就常见问题做出一些解答,欢迎留言探讨. ThreadLocal为java并发提供了一个新的思路, 它用来存储Thread的局部变 ...

  8. Python文字转换语音,让你的文字会「说话」,抠脚大汉秒变撒娇萌妹

    作者 | pk 哥 来源公众号 | Python知识圈(ID:PythonCircle) APP 也有文字转换为语音的功能,虽然听起来很别扭,但是基本能解决长辈们看不清文字或者眼睛疲劳,通过文字转换为 ...

  9. Go 基础学习笔记 (5)| 数据类型说明与使用

    在 Go 编程语言中,数据类型用于声明函数和变量. 数据类型的出现是为了把数据分成所需内存大小不同的数据,编程的时候需要用大数据的时候才需要申请大内存,就可以充分利用内存. Go 语言按类别有以下几种 ...

  10. java多线程回顾2:生命周期与控制

    1.  线程生命周期概述 线程的生命周期如下图: 2.  新建与就绪 当程序使用new关键字创建一个线程之后,线程就处于新建状态了.此时线程只是被分配了内存资源,初始化了成员变量. 当线程对象被调用了 ...