the usage of speedtest in linux
There are many ways to install speedtest_cli
1 github
git clone https://github.com/sivel/speedtest-cli.git
python speedtest-cli/setup.py install
2 pip / easy_install
pip install speedtest_cli
easy_install speedtest_cli
I’d like to install it by pip
[root@localhost ~]# pip install speedtest_cli
Collecting speedtest_cli
Downloadinghttps://files.pythonhosted.org/packages/08/9c/c3988fd3f7a819309dc280da61a8cd3020c92719a7c3063f6c97c0c9bd9f
/speedtest_cli-2.0.0-py2.py3-none-any.whl
Installing collected packages: speedtest-cli
The scripts speedtest and speedtest-cli are installed in ‘/usr/local/python2.7.13/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use –no-warn-script-location.
Successfully installed speedtest-cli-2.0.0
[root@localhost ~]# /usr/local/python2.7.13/bin/speedtest
Retrieving speedtest.net configuration…
Testing from China Telecom Hunan (106.36.216.49)…
Retrieving speedtest.net server list…
Selecting best server based on ping…
Hosted by Xi’an branch,Chinaunicom (Xi’an) [2.79 km]: 19.909 ms
Testing download speed……………………………………………………………………..
Download: 8.70 Mbit/s
Testing upload speed……………………………………………………………………………………
Upload: 5.04 Mbit/s
[root@localhost ~]#