无法在Google Colab中降级scipy软件包

问题描述 投票:0回答:1

我是Google Collab的新手,我无法降级我需要的scipy版本。

我按照other question的建议,使用pip或pip3安装了旧版本,但是我仍然有不需要的版本。

我的代码:

!pip3 install scipy==1.2.1
import scipy
print(scipy.__version__)

我得到:

Requirement already satisfied: scipy==1.2.1 in /usr/local/lib/python3.6/dist-packages (1.2.1)
Requirement already satisfied: numpy>=1.8.2 in /usr/local/lib/python3.6/dist-packages (from scipy==1.2.1) (1.18.2)
1.4.1

有任何建议吗?在此先感谢

python-3.x scipy google-colaboratory
1个回答
0
投票

选择

MENU > Runtime > Restart runtime...

然后再次检查。

import scipy
print(scipy.__version__)
© www.soinside.com 2019 - 2024. All rights reserved.