mYoungs' Blog

I love, therefore I am.

0%

OS X上安装jupyter

在本机安装jupyter时遇到了一些问题,在pip3 install jupyter之后,会报warning 且 which jupyter之后找不到程序。
warning 如下

1
2
3
The script pygmentize is installed in '/Users/xuser/Library/Python/3.7/bin' which is not on PATH. 
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The scripts jupyter, jupyter-migrate and jupyter-troubleshoot are installed in '/Users/xuser/Library/Python/3.7/bin' which is not on PATH.

show 一下一脸蒙蔽的状态,难道我要配一下path? wait 好像不是那么回事儿啊。

1
2
3
4
5
6
7
8
9
10
11
12
13
➜  ~ which jupyter3
jupyter3 not found
➜ ~ pip3 show jupyter
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
License: BSD
Location: /Users/xuser/Library/Python/3.7/lib/python/site-packages
Requires: qtconsole, ipywidgets, nbconvert, ipykernel, jupyter-console, notebook
Required-by:

经过一阵股沟,最后发现了一个方法

  • 先用homebrew 卸载 python3并且重新安装,然后使用命令 sudo -H pip install jupyter 安装jupyter

所以再次验证了 多喝热水,重启试试,管你屁事,管我屁事可以解决人生多数困扰,如果不行再试一遍。手动微笑

OS X上的软件还是建议用brew安装和更新,又能解决一大堆的麻烦。