首页 > 编程语言 > 详细

安装Speedtest到Python

时间:2020-06-15 18:45:28      阅读:71      评论:0      收藏:0      [点我收藏+]

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

安装Speedtest到Python

原文:https://www.cnblogs.com/network-ren/p/13132320.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!