刚拿到的Jetson Nano开发板上,jtop指令无法运行,
~$ jtop
I can't access jetson_stats.service.
Please logout or reboot this board.
顺便查了一下nvcc和tensorrt,正常,
~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Feb_28_22:34:44_PST_2021
Cuda compilation tools, release 10.2, V10.2.300
Build cuda_10.2_r440.TC440_70.29663091_0
~$ dpkg -l tensorrt
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii tensorrt 8.0.1.6-1+cu arm64 Meta package of TensorRT
一时半会也没个头绪,重启系统,无效;然后重启了一下jetson_stats.service,
sudo systemctl restart jetson_stats.service
输入密码,无效,然后就没有然后了;
硬着头皮,把jetson_stats重新安装了一下,根据官网:
https://pypi.org/project/jetson-stats/
- Install
- sudo -H pip install -U jetson-stats
- 🚀 That's it! 🚀
- PS: Don't forget to reboot your board
安装过程如下,
~$ sudo -H pip install -U jetson-stats
[sudo] password for hiwonder:
Requirement already satisfied: jetson-stats in /usr/local/lib/python3.6/dist-packages (3.1.1)
Collecting jetson-stats
Downloading jetson-stats-3.1.4.tar.gz (85 kB)
|████████████████████████████████| 85 kB 246 kB/s
Building wheels for collected packages: jetson-stats
Building wheel for jetson-stats (setup.py) ... \
done
Created wheel for jetson-stats: filename=jetson_stats-3.1.4-py3-none-any.whl size=113477 sha256=25dfb2c83ddec3d5096ff0b9f4ba97d54b6278089448cac73a10d58d0f307738
Stored in directory: /root/.cache/pip/wheels/91/de/fb/c3d02bc69291926b5337e3f611048bfd34520502724a68551d
Successfully built jetson-stats
Installing collected packages: jetson-stats
Attempting uninstall: jetson-stats
Found existing installation: jetson-stats 3.1.1
Uninstalling jetson-stats-3.1.1:
Successfully uninstalled jetson-stats-3.1.1
Successfully installed jetson-stats-3.1.4
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
然后再跑jtop指令,还是不行,
~$ jtop
The jetson_stats.service is not active. Please run:
sudo systemctl restart jetson_stats.service
hiwonder@JetMax:~$ sudo systemctl restart jetson_stats.service
hiwonder@JetMax:~$ jtop
I can't access jetson_stats.service.
Please logout or reboot this board.
不过官网说了必须重启系统,所以赶紧reboot一下。
重启之后,发现jtop可以正常运行了,如下,
到最后,也没弄明白为什么jetson-stats-3.1.1不能运行,而jetson-stats-3.1.4能正常运行。
本文结束。