【问题标题】:Atom hydrogen kernel issue: Fixing PATH with zsh on macbook proAtom 氢内核问题:在 macbook pro 上使用 zsh 修复 PATH
【发布时间】:2021-09-27 14:44:26
【问题描述】:

我在 Atom 上使用 Python 安装了 Hydro 内核

python -m pip install ipykernel
python -m ipykernel install --user

这样做后,我收到以下消息

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.

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

【问题讨论】:

    标签: python jupyter-notebook atom-editor


    【解决方案1】:

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

    PATH=/Library/Frameworks/Python.framework/Versions/3.9/bin:$PATH
    

    【讨论】:

    • 如何找到文件?
    • 如果它不在您的主目录中,您可以创建它。
    猜你喜欢
    • 2021-05-23
    • 2022-06-16
    • 1970-01-01
    • 1970-01-01
    • 2021-10-04
    • 2013-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多