Installed new script; not in path (?)

Hi,

I installed a new python script,
and get the message that it (next to dotenv) is not in path.

Is that ok this way,
or how do I put it into path?

Thanks

anyone?

Part of the issue is screenshots are hard to troubleshoot. try to copy and paste the text when asking for help.

type "echo $PATH " at the command line
you will see that the path in your error is not in the list.
the dot in the path looks suspect
also appears you are using a live install. I assume you have persistence setup if you want the script to stay upon a reboot

to answer your question
export PATH=/home/ubuntu/.local/bin:$PATH
however there was probably a mistake in the way you installed your script

1 Like

Thanks so much, I will try that.

I installed it just by loggin in command line,
switchting to root,
not moving to another folder (I asked myself where shall I move to, to install the python script, but couldn’t find any source),
and just run the install.

So, I guess I should have moved into another folder;
but which folder would that be (?)

It is a python API script.

Thanks

Hi, if I would install that python script again,
where would I have to navigate,
to run the install command?

(so that there is no path issue)

Is /usr/local/bin the correct one, as it is with ubuntu in general?

Thanks

This will tell your your current path
echo $PATH

I would assume that /usr/local/bin is in there. It is on debian 12

When I run the command, I get:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/hestia/bin

So, yeah, its in there.

So that means, system first looks into /sbin, then into /bin, and so on, right…

Ok, from that I conclude its right to be in /usr/local/bin, when installing the python script.

taken from the link provided in my first reply.

The shell searches for executables in the PATH in a specific order, starting with shell builtins, then searching through the listed directories from left to right.

yes it is right to be in /usr/local/bin

1 Like