glances icon indicating copy to clipboard operation
glances copied to clipboard

Installed with pip3 --> "bash: /usr/bin/glances: No such file or directory"

Open Niemand112233 opened this issue 4 years ago • 4 comments

Hi, first I installed it with apt install glances on a Ubuntu 20.04 and it worked. Then I saw that it is quite outdated and removed it by "apt remove glances" and reinstalled it with "pip3 install glances[all]". The tab-autofill tells me "glances" is installed, but when I try to start it I get "bash: /usr/bin/glances: No such file or directory"

Niemand112233 avatar Dec 16 '20 10:12 Niemand112233

Can you try to run glances with:

/usr/local/bin/glances

nicolargo avatar Dec 24 '20 09:12 nicolargo

Same thing happening for me. Its not in /usr/local/bin/glances either

pankti11 avatar Jan 07 '21 21:01 pankti11

Hello,

If i understand well:

pip3 install glances[all]

will not install anything in /usr/local/ that because only root can do it. generally in case of permission error pip use the user $HOME/.local/bin directory, then the user have to configure the $PATH env variable.

I sugess to try to add $HOME/.local/bin on the PATH env if you haven't root permission

export PATH="$HOME/.local/bin:$PATH"

In case you have root permission

sudo pip3 install glances[all]

The setup.py file just define the name glances and let pip choose the destination directory. Tipically for pip install --user or pip install --editable

entry_points={"console_scripts": ["glances=glances:main"]}

Hierosme avatar Feb 16 '21 16:02 Hierosme

I just have make the test,

└─ $ ▶ pip install glances[all]
....
└─ $ ▶ ls $HOME/.local/bin/glances 
-rwxr-xr-x 1 USER_NAME USER_GROUP 205 févr. 16 17:23 /home/USER_NAME/.local/bin/glances

Then use

sudo pip3 install glances[all]

if you want it to /usr/bin/glances

Hierosme avatar Feb 16 '21 16:02 Hierosme

Closing as a solution is already provided.

RazCrimson avatar May 09 '23 21:05 RazCrimson