gpt4 book ai didi

python - 无法将库升级到 Google Colab 上的特定版本(scipy 版本 1.8.0)

转载 作者:行者123 更新时间:2023-12-05 03:25:32 50 4
gpt4 key购买 nike

在最新版本的 Scipy 中添加了一个函数。我想在 Google Colab 笔记本上使用这个版本,但我无法将 Scipy 升级到我需要的版本。

这是我根据 this post 尝试的结果和 this other post :

!pip install scipy==1.8.0

ERROR: Could not find a version that satisfies the requirement scipy==1.8.0 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.0.1, 1.1.0rc1, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0rc1, 1.6.0rc2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.7.0rc1, 1.7.0rc2, 1.7.0, 1.7.1, 1.7.2, 1.7.3)

ERROR: No matching distribution found for scipy==1.8.0

根据scipy documentation ,1.8.0版本于今年2月发布。为什么我无法在 Google Colab 上升级到 1.8.0 版本?

我可以在本地计算机上通过简单的 pip install scipy --upgrade 升级到这个版本。

最佳答案

Google colab 在 Python 3.7 上运行,但是 SciPy 1.8.0 至少需要 Python 3.8

google colab python version

根据 https://docs.scipy.org/doc/scipy/release.1.8.0.html ,

This release requires Python 3.8+ and NumPy 1.17.3 or greater.

关于python - 无法将库升级到 Google Colab 上的特定版本(scipy 版本 1.8.0),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71983103/

50 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com