首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Kaggle中有安装OptaPy的方法吗?

在Kaggle中有安装OptaPy的方法吗?
EN

Stack Overflow用户
提问于 2022-07-07 10:08:04
回答 1查看 67关注 0票数 0

我想在Kaggle笔记本上试用OptaPy,但当我试图安装它时,我遇到了第一个障碍:

代码语言:javascript
复制
!pip install optapy
ERROR: Ignored the following versions that require a different python version: 8.11.0a0 Requires-Python >=3.9; 8.11.0a1 Requires-Python >=3.9; 8.11.0a2 Requires-Python >=3.9; 8.14.0a0 Requires-Python >=3.9; 8.16.1a0 Requires-Python >=3.9; 8.17.0a0 Requires-Python >=3.9; 8.19.0a0 Requires-Python >=3.9; 8.19.0a1 Requires-Python >=3.9; 8.21.0a0 Requires-Python >=3.9; 8.23.0a0 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement optapy (from versions: none)
ERROR: No matching distribution found for optapy

Kaggle环境似乎是: Python版本: 3.7.12 \ Java版本: 11.0.15

有什么解决办法吗?

EN

回答 1

Stack Overflow用户

发布于 2022-07-07 14:09:27

在错误消息中:

代码语言:javascript
复制
ERROR: Ignored the following versions that require a different python version: 8.11.0a0 Requires-Python >=3.9; 8.11.0a1 Requires-Python >=3.9; 8.11.0a2 Requires-Python >=3.9; 8.14.0a0 Requires-Python >=3.9; 8.16.1a0 Requires-Python >=3.9; 8.17.0a0 Requires-Python >=3.9; 8.19.0a0 Requires-Python >=3.9; 8.19.0a1 Requires-Python >=3.9; 8.21.0a0 Requires-Python >=3.9; 8.23.0a0 Requires-Python >=3.9

https://www.kaggle.com/general/173536来看,Kaggle使用Python3.7,并没有提供一种直接的升级方式。OptaPy需要Python3.9或更高版本(它在源代码中使用3.9语法,因此3.8及更低版本无法工作)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72895972

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档