The directory '/home/alsontech/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/alsontech/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
使用sudo -H pip3 install jetson-stats指令,安装成功:
Collecting jetson-stats
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4d49e8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/jetson-stats/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4d46a0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/jetson-stats/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4d44a8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/jetson-stats/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8c4d43c8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/jetson-stats/
Downloading https://files.pythonhosted.org/packages/64/78/345194e16e2b3cfcd986bf24b885e9b3eb92f48015d4bde0f879c369aafd/jetson-stats-3.1.4.tar.gz (85kB)
100% |████████████████████████████████| 92kB 96kB/s
Building wheels for collected packages: jetson-stats
Running setup.py bdist_wheel for jetson-stats ... done
Stored in directory: /root/.cache/pip/wheels/d1/0a/11/9e65ed0baa1915c68e9a8a6d50566c672e88d7dceb51538fef
Successfully built jetson-stats
Installing collected packages: jetson-stats
Successfully installed jetson-stats-3.1.4