You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

zsh: command not found: jupyter

Hi There,


I recently downloaded MacOS Catalina version and updated my shell from bash to zsh. Now, when I try to open Jupiter notebook from the terminal line command, I am getting this error "Jupiter not found".

I am not sure what might be causing this. Can you please help?


Thanks

iMac 27" 5K, macOS 10.15

Posted on Oct 18, 2019 6:50 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 19, 2019 11:18 AM

If you just switched from bash to zsh, chances are various bash shell initialization are no longer being performed. If you have any of these files, you need to see about converting them to the zsh equivalent:

  • .bashrc
  • .bash_profile
  • .bash_login
  • .profile

6 replies

Oct 19, 2019 11:42 AM in response to prashant262

Zsh is an entirely different shell animal than Bash, so anything that you had set in your Bash hidden files is ignored by Zsh. You will have to set up your ~/.zshrc which is read when your Terminal launches. Here is a small sample of what I have in mine:


# .zshrc
export PATH=".:$HOME/bin:/usr/local/bin:$PATH"
export MANPATH=".:/user/local/share/man:/usr/share/man:$MANPATH"
TPUT="/usr/bin/tput"
Bluebld="$(${TPUT} bold; ${TPUT} setaf 63)"
White="$(${TPUT} bold; ${TPUT} setaf 15)"
Green="$(${TPUT} bold; ${TPUT} setaf 42)"
Normal="$(${TPUT} sgr0)"
# don't want VPN DNS changing my hostname
MyHost="$(networksetup -getcomputername)"
export CLICOLOR=1
# [e]grep matches are quite yellow
export GREP_COLOR='00;38;5;226'
export GREP_OPTIONS='--color=auto --extended-regexp'
export LSCOLORS='gxfxcxdxbxegedabagacad'
export HOMEBREW_NO_ANALYTICS=1
PS1="${Green}${MyHost}: %~ %% ${White}"
# command-line editing using vi/vim
bindkey -v


And what my Zsh prompt appears as when changing from Bash:


The version of Zsh that Apple is shipping in Mojave is from 2016 — v5.3. As of 2019-02-03, it is version 5.7.1. Version 5.3 only includes the regex module (triggered by =~ syntax, and not the more powerful pcre module that allows one to precompile regex.

Nov 27, 2019 9:03 AM in response to VikingOSX

<rant>

I grow weary of Apple trashing of my python / development environment every time a new OS version comes out! This time jupyter is missing and nowhere to be found, Anaconda navigator is gone, the python3 command now points to a reasonably recent build (3.7.3) but pip3 forces me to install packages as su if I want them available for all users. XCode gets updated but the command line tools requires a re-install every time. Why can't Apple be nicer to developers? I realize that there are bad people in the world but I expect sudo to do what I tell it no matter what. The restart-in-safemode routine doesn't make me a happy camper...

</rant>

Nov 27, 2019 10:14 AM in response to sloughin

I am a fellow user, and not on Apple's payroll, so ranting to me is unnecessary (and pointless). Apple product teams do not participate here as they are already fully involved with other deliverables.


Apple including a partial Python 3 installation within the command-line tools was silly and invasive. Especially when they advise that they will be removing Python, Ruby, and Perl from the next version of macOS in Fall 2020. I only install Python3 builds from Python.org, and use Sublime Text 3 with an optional Anaconda IDE package available for it.


Apple forces zsh on us and that would have been ok if they had installed the full zsh v5.7.1 build. Instead, the removed the pcre regex module (and probably other things too) which is quite powerful in zsh scripts. For the full unmolested zsh package, I used brew install zsh — which is how I realized that Apple was cherry-picking functionality out of the Catalina version of zsh.

zsh: command not found: jupyter

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.