我想在Kaggle笔记本上试用OptaPy,但当我试图安装它时,我遇到了第一个障碍:
!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 optapyKaggle环境似乎是: Python版本: 3.7.12 \ Java版本: 11.0.15
有什么解决办法吗?
发布于 2022-07-07 14:09:27
在错误消息中:
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及更低版本无法工作)。
https://stackoverflow.com/questions/72895972
复制相似问题