安裝Speedtest到Python


Speedtest模塊可以測試主機的網絡帶寬大小。

運行環境

系統版本:CentOS Linux release 7.3.1611 (Core)
軟件版本:無
硬件要求:無

安裝過程

1、安裝Speedtest

root@localhost:~# pip install speedtest-cli  -i "http://mirrors.aliyun.com/pypi/simple/" --trusted-host mirrors.aliyun.com

2、網絡測速

root@localhost:~# speedtest-cli --bytes
Retrieving speedtest.net configuration...
Testing from Hangzhou Alibaba Advertising Co.,Ltd. (47.98.238.23)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Chinamobile-5G (Shanghai) [19.64 km]: 11.277 ms
Testing download speed................................................................................
測試下載速率
Download: 14.06 Mbyte/s
Testing upload 
speed................................................................................................
測試上傳速率
Upload: 1.46 Mbyte/s


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM