Jupyter(Jupyter command `jupyter-notebook` not found.)

$ jupyter notebook
Traceback (most recent call last):
  File "/usr/local/bin/jupyter", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/jupyter_core/command.py", line 247, in main
    command = _jupyter_abspath(subcommand)
  File "/usr/local/lib/python3.7/site-packages/jupyter_core/command.py", line 134, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.

使用 pip install jupyter 安装 jupyter 后启动 jupyter notebook 报错:

解决方法:
强制重新安装

pip3 install --upgrade pip
pip install jupyter
pip install --upgrade --force-reinstall --no-cache-dir jupyter