简体   繁体   中英

installing jupyter notebooks on macOS

when I do a pip install jupyter notebook, which it seems to install and then I run "jupyter notebook" it tells me that "zsh: command not found: jupyter"

Also does it matter using zsh on macOS?

Any suggestions too fix this issue? Thanks! Johnny

Make sure where juypter was installed is on your execution path in the zsh shell. (If "which jupyter" doesn't list a valid path, then that's your problem. :)

Should look something like this, but with the location on your machine:

(jupyter) c-67-188-202-51{rich:~/src/python/udemy/completePythonBootcamp} which jupyter
/Users/rich/src/python/udemy/completePythonBootcamp/jupyter/bin/jupyter

I faced a similar problem. If you've installed it using --user try to add to your path variable in .zshrc a path like this /Users/<name_of_your_user>/Library/Python/3.8/bin . Replace <name_of_your_user> with name of the user and maybe you have another version of python and the folder 3.8 should be replaced with the corresponding version. It helped me. Please check if that works for you and mark the question as solved if it did.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM