command for jupyter lab not found after installing with pip

Viewed 1052

I tried to install a package with python3 -m pip install package but it says some of the script has been installed in /home/name/.local/bin which is not on PATH. And when I try to run them it says that Command X not found.

What should I do now? and more important, what is the better way to solve this? thanks.

The output of which python3 is /usr/bin/python3

The output of echo $PATH is

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

OS: Ubuntu 20.04

1 Answers

You would just need to add /home/name/.local/bin to your PATH environmental variable. To do so:

export PATH="/home/name/.local/bin:$PATH"

You can also add this line to ~/.bashrc, ~/.bash_profile, etc (depending on your shell and OS) to make the change permanently.

Related