Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
Spedoske edited this page Apr 16, 2020 · 6 revisions

欢迎来到 DataCenterSpeedtest-cli 的Wiki页面!

如何安装 DataCenterSpeedtest-cli

安装python3(请使用python 3.6或以下版本,3.7以上无法测试https节点的链接)和pip3

CentOS系统可使用如下命令:

yum -y install python3
yum -y install python3-pip

Debian/Ubuntu

sudo apt-get install python3
sudo apt-get install python3-pip

Windows请至python官网安装python3

注意:Windows用户请将指令python3替换为pythonpip3替换为pip

安装python包

本项目依赖requests、prettytable、eventlet包,需输入:

pip3 install requests prettytable eventlet

来安python包.

MacOS用户如遇print错误,请在main.py开头添加如下代码:

import sys
import codecs
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())

下载项目文件

Windows用户可以直接下载本项目的压缩包并解压. 为了安装并使用此项目,您需要下载下载本项目的文件。您可使用git下载项目文件并进入项目文件夹:

git clone https://github.com/Spedoske/DataCenterSpeedtest-cli.git
cd DataCenterSpeedtest-cli

执行:

python3 main.py --list

如果出现类似于下图的表格,恭喜您安装成功.

服务商 节点位置 节点编号
Amazon Web Services 美国 弗吉尼亚州 阿什本 0
Amazon Web Services 美国 俄亥俄州 都柏林 1
Amazon Web Services 美国 俄亥俄州 都柏林 2
Amazon Web Services 美国 加利福尼亚州 旧金山 3
Amazon Web Services 美国 俄勒冈州 波特兰 4
Amazon Web Services 瑞典 斯德哥尔摩省 斯德哥尔摩 5