glances
glances copied to clipboard
Installed with pip3 --> "bash: /usr/bin/glances: No such file or directory"
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"
Can you try to run glances with:
/usr/local/bin/glances
Same thing happening for me. Its not in /usr/local/bin/glances either
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"]}
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
Closing as a solution is already provided.