python-3.x - 将 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
我正在使用诗歌包管理器。
解决方案
推荐阅读
- c - 为什么要打印以前的输出?
- c++ - CMakiLists.txt 上的 CGAL::CGAL
- javascript - 我可以打开多个 Puppeteer 浏览器吗?
- c - ARMv7 汇编语言:如何反转 char 数组并将其输出到另一个 char 数组
- excel - 如何在excel中匹配买/卖订单?
- mysql - 我的查询显示 heidisql 错误,不知道如何修复
- javascript - 使用带有大写字母的保留字会在 Node 中带来不良后果吗?
- javascript - 使用逻辑的 Typescript 工厂类
- c++ - 使用迭代器指针从对象指针列表中删除元素(C++)
- typescript - ts-jest:TypeScript 类型错误被忽略