您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页macOSX Python2工具Jupyter Notebook

macOSX Python2工具Jupyter Notebook

来源:二三娱乐

Mac osx上python2,pip install jupyter执行到最后会报OSError: [Errno 1] Operation not permitted:的问题,sudo也不能给予足够的权限,调查发现是SIP机制导致。

1,解决方法:基于用户权限安装模块

pip install jupyter --user --upgrade

2.1,成功安装后,输入Jupyter Notebook提示命令无效,考虑环境变量未设置,需要确认安装路径

find ~ -iname "jupyter"

返回/Users/local_user_name/Library/Python/2.7/bin/jupyter

2.2,配置以上路径到环境变量~/.bash_profile,并source,重启terminal

jupyter=/Users/local_user_name/Library/Python/2.7/bin

PATH=$jupyter:$PATH

export PATH

source ~/.bash_profile

3,输入Jupyter Notebook,启动Jupyter

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务