mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #2] nvitop command not found after installation #2
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#2
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 @WMRamadan on GitHub (Jul 14, 2021).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/2
Runtime Environment
nvitopversion/commit: 0.3.5.5python-ml-pyversion: 11.450.51Current Behavior
1 - After installing
nvitopas instructed you cannot launchnvitopby runningnvitopcommand in Windows Command Prompt or Windows PowerShell. The current solution is to usepython -m nvitopcommand to run.2 - Running nvitop using "python -m nvitop" produces error "ModuleNotFoundError: No module named '_curses'". The solution is to install
windows-cursesusingpip3 install windows-cursesExpected Behavior
1 -
nvitopcommand should be executable directly from Windows Command Prompt or Windows PowerShell after installation.2 - pip should install all necessary packages needed for Windows such as
windows-cursespackage.Context
Unless you are experienced with Python this could be difficult for an average user.
Possible Solutions
1 - Use
python -m nvitopto runnvitopor add toPATH2 - Install
windows-cursespip package after installation ofnvitopSteps to reproduce
Install
nvitopon Windows and try to run usingnvitopcommand.After installation run
nvitopwithpython -m nvitopcommand.@XuehaiPan commented on GitHub (Jul 14, 2021):
Thanks for the feedback!
For the first issue:
The Python executable (in
PYTHONHOMEDIR) and the scripts installed bypip(inPYTHONHOMEDIR/Scripts) are in the different directories. You should add both the Python home and its script directory to your shell PATH. If you are using conda or virtualenv, these entries will be added to your PATH at activation automatically.For the second issue:
I tested and packed
nvitopon my Linux machine, and thesys.platformwasLinuxwhen I build the wheel file. When you installingnvitopon Windows from PyPI,pipwill use the wheel file instead of running thesetup.py(which will determinesys.platformat runtime). I will repack the wheel file to PyPI later.@XuehaiPan commented on GitHub (Jul 14, 2021):
I have uploaded the repacked version of
nvitop(fixed byb669fa39b1) to the PyPI index, you can try:It should install
windows-cursesautomatically.@XuehaiPan commented on GitHub (Jul 15, 2021):
Thanks for the feedback from @WMRamadan! Feel free to reopen this issue if you have any other questions.
nvitopcommand not found after installation #10