!我试图通过使用"speedtest“模块来获取python的下载和上传速度,但是当我使用这个模块时,它给了我这个错误:
AttributeError:模块“”Speedtest“”没有属性“”Speedtest“”。“”
我只是声明了变量,这是我的代码:
import speedtest
test = speedtest.Speedtest()发布于 2021-10-22 12:01:38
你的.py文件和你的脚本在同一个目录下吗?另外,你是如何安装speedtest的?如果您使用pip install speedtest安装它,请尝试使用pip uninstall speedtest卸载它,然后使用pip install speedtest-cli重新安装它
https://stackoverflow.com/questions/69676402
复制相似问题