首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >原子氢核问题:在macbook pro上使用zsh修复路径

原子氢核问题:在macbook pro上使用zsh修复路径
EN

Stack Overflow用户
提问于 2021-09-27 14:44:27
回答 1查看 31关注 0票数 1

我在Atom上安装了Python的氢内核,使用

代码语言:javascript
复制
python -m pip install ipykernel
python -m ipykernel install --user

在这样做之后,我得到了以下消息

代码语言:javascript
复制
WARNING: The script pygmentize is installed in '/Library/Frameworks/Python.framewo
rk/Versions/3.9/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.
  
WARNING: The scripts jupyter, jupyter-migrate and jupyter-troubleshoot are install
ed in '/Library/Frameworks/Python.framework/Versions/3.9/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.
  
WARNING: The scripts jupyter-kernel, jupyter-kernelspec and jupyter-run are instal
led in '/Library/Frameworks/Python.framework/Versions/3.9/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.

WARNING: The scripts iptest, iptest3, ipython and ipython3 are installed in '/Libr
ary/Frameworks/Python.framework/Versions/3.9/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.

WARNING: The scripts pip, pip3 and pip3.9 are installed in '/Library/Frameworks/Py
thon.framework/Versions/3.9/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.

如何解决此问题以避免将来出现问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-09-27 15:18:57

将以下行添加到.zprofile.zshenv文件中:

代码语言:javascript
复制
PATH=/Library/Frameworks/Python.framework/Versions/3.9/bin:$PATH
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69348641

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档