首页 > 解决方案 > 将 swagger_client 导入 python 项目以运行 strava API

问题描述

我正在尝试用 Python 进行一些基本的编程,我希望能够从 strava 中提取、发布和编辑我自己的数据。

我对编程很陌生,我用它作为我的“顶点”项目来发展我的技能。

请参阅https://developers.strava.com/docs/reference/#api-Activities-createActivity

我正在尝试导入 swagger_client 但得到:

ModuleNotFoundError: No module named 'swagger_client'

我尝试使用以下命令安装 swagger 的命令行版本:

wget https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.13/swagger-codegen-cli-2.4.13.jar -O swagger-codegen-cli.jar

我在 ubuntu 18.04 上运行,不确定这是否会有所不同。

我的仓库是https://github.com/RobOwen-climb/Robruns.git

我正在使用诗歌包管理器。

标签: python-3.xswagger-2.0python-poetrystrava

解决方案


推荐阅读