• Mac安装jupyter(原ipython)方法


    用了Mac之后非常不习惯,很多东西都要查才能完成=-=之前Python用的sublime和ide,今天看教程安利了一个jupyter

    记录下用Mac安装jupyter的过程:

    1.像其他安装Mac自带了python2.7 和 easy-install

    习惯用pip所以先装了个pip:

    终端输入:sudo easy_install pip

    2.可以直接用pip来安装其他库了,比如python库pandas

    终端输入:pip install pandas

    3.顽固的pip install jupyter会出现error,没有权限。

    sudo也不行。

    解决方法:重启mac,按住cmd+r,出现recovery模式,出现苹果logo松开,

    选择语言, 之后在上面找到实用工具------终端,输入:csrutil disable

    这是因为mac ox 10.11 默认开启了SIP:system integrity protection,这样我就把它关掉了。

    之后重启,按照2的方法sudo pip install jupyter

    4.打开,终端输入 jupyter notebook

    尴尬了出现

    ImportError: cannot import name _thread

    又查了一个方法,亲测可用:改变dateutil的版本

    sudo pip uninstall python-dateutil

    sudo pip install python-dateutil==2.2

    然后就可以打开jupyter notebook了,这个时候弹出一个网页:

    右上角new一个python,命令的话shift+enter运行。

    具体用法还没看,其实就是一个编译器但是感觉很强大。

  • 相关阅读:
    消融实验(Ablation experiment)& 控制变量法
    reduce的方向
    深度学习和推荐系统的资料
    [Tailwind] Transitioning Rounded Corners using the JIT Compiler
    [JS Pattern] Proxy pattern
    git base cmd
    python app
    gitcmd ins tortoiseGitGUI
    vs vscode vs+ qt
    git branch tag
  • 原文地址:https://www.cnblogs.com/cphmvp/p/7070719.html
Copyright © 2020-2023  润新知