mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #11] nvitop command not found after installation #10
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @monajalal on GitHub (Dec 16, 2021).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/11
I ran the same exact commands on Ubuntu 18.04 with no problem but it doesn't work in Ubuntu 20.04. Could you please have a look?
@XuehaiPan commented on GitHub (Dec 17, 2021):
@monajalal Seems
nvitopdoes not present in yourPATH. You may need to update yourPATHenvironment variable. There is a similar issue #2 on Windows.Solution 0:
Run
nvitopwith the full path:Solution 1:
You can add the following line into your
~/.bash_profile(forbash) or~/.zprofile(forzsh).Then it will work in a new terminal window.
Solution 2:
Since
nvitopdoes not show up in yourPATH, you can runpython -m <module name>with the Python executable that you runpipwith.Solution 3 (
sudoprivilege required):Install
nvitopinto/usr/local/binfor all user:Since
/usr/local/binmay always present in thePATHenvironment variable.Explanation of why this problem occurs:
According to the above output, you are using the
pipfrom system Python.Run
pip3 install nvitop(orpip3 install --user nvitop) with the systempipwill install apps to a prefix in your home directory (~/.local/bin), and you need to add it to yourPATHenvironment variable. Otherwise, you will need to use the full path~/.local/bin/nvitopor run as a Python modulepython3 -m nvitop.@XuehaiPan commented on GitHub (Dec 17, 2021):
Feel free to reopen this issue if you have any other questions.
@BitCalSaul commented on GitHub (Apr 26, 2024):
Hi I tried sudo /usr/bin/pip3 install nvitop and it was downloaded. But when i try sudo nvitop, the terminal said command not found. could you give any hints?
@BitCalSaul commented on GitHub (Apr 26, 2024):
I added nvitop path to the sudoer file, but it cames with error belowL

@moluzhui commented on GitHub (Mar 6, 2025):
not found nvitop in
~/.local/bin