Ubuntu16.04测网速
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0b4.tar.xz
tar -xvJf Python-3.7.0b4.tar.xz
cd Python-3.7.0b4/
./configure --prefix=/usr/python
make
make install
cp /usr/bin/python /usr/bin/python.bak
ls -n /usr/python/bin/python3 /usr/bin/python
git clone https://github.com/sivel/speedtest-cli.git
python speedtest-cli/setup.py install
cd speedtest-cli/
./speedtest.py
出处:http://blog.51cto.com/keepsmile/2117887