[PYTHON] If you try to start the jupyter notebook installed with pip and it says "command not found", it seems that you can go through the PATH.

Premise

Continuation of the previous installation (https://qiita.com/midonon/items/d15385387a04dc7c6007)

jupyter notebook does not start

I found an interesting course on udemy, and when I tried to start jupyter notebook according to the instructions in the video, I was told -bash: jupyter: command not found.

When I checked with echo $ PATH, the path is as follows

And when I checked the location of jupyter with pip3 show jupyter, it was /Library/Python/3.7/site-packages, so it seems that the path does not pass.

I did the following with reference to https://stackoverflow.com/questions/45495753/jupyter-not-found-after-pip-install-jupyter that came out by googled "-bash: jupyter: command not found" I was able to go safely.

Pass through

cd ~ ls -la Look at the list of home directories in and make sure the .bash_profile file is missing. Create a new .bash_profile with touch .bash_profile and open .bash_profile with TextEdit with ʻopen ~ / .bash_profile. Add ʻe export PATH = "$ HOME / Library / Python / 3.7 / bin: $ PATH" to the contents.

After that, reopen the terminal and check that the target path is passed with ʻecho $ PATH, and then set it to jupyter notebook` and it will start up safely. Finally start the course ...

Recommended Posts

If you try to start the jupyter notebook installed with pip and it says "command not found", it seems that you can go through the PATH.
python note: What does it mean to set a seed with random number generation?
What does the last () in a function mean in Python?
I wrote it in Go to understand the SOLID principle
What to do if the user name is changed and the pyenv library path does not pass
What to do when the jupyterlab extension settings are not reflected
If you try to start the jupyter notebook installed with pip and it says "command not found", it seems that you can go through the PATH.
If you try to install Python2 pip after installing Python3 pip and it is rejected
Move what you installed with pip to the conda environment
When I start service with systemd, I get command not found even though the path is passing
[Python] What is pip? Explain the command list and how to use it with actual examples
It seems that you can now write gate books with blueqat
[TensorFlow] If you want to run TensorBoard, install it with pip
Specify the browser to use with Jupyter Notebook. Especially Mac. (And Vivaldi)
How to fix a bug that jupyter notebook does not start automatically
The module that should have been installed with pip does not run
What to do if you get Could not fetch URL 443 with pip
It seems that cancelall childorders can be used to cancel all parent orders (special orders) with the bitflyer API
I thought it was the same as python, and I was addicted to the problem that the ruby interpreter did not start.
Try to find the probability that it is a multiple of 3 and not a multiple of 5 when one is removed from a card with natural numbers 1 to 100 using Ruby and Python.