Tensorflow
与numpy
的版本兼容性
-
大家可以留言使用正常的
version
,我可以加进表格 -
目前我摸索、网友提供的有如下:
-
注:有许多可以使用的版本在评论区,可以参考
tensorflow | numpy | cuda | cudnn |
---|---|---|---|
2.6.0 | 1.19.5 | - | - |
2.0.0 | 1.16.4 | - | - |
1.3.0 | 1.16.2 | - | - |
1.14.0 | 1.16.0 | 10.0 | 7.6.5 |
1.13.1 | 1.16.0 | - | - |
1.12.0 | 1.15.4 | - | - |
1.8.0 | 1.14.5 | - | - |
- 更改
numpy
版本方法:
pip install -U -i https://pypi.tuna.tsinghua.edu.cn/simple numpy==版本
# -U 是重装
# -i https://pypi.tuna.tsinghua.edu.cn/simple 是使用清华镜像
- 一般
numpy
版本和tensorflow
版本不对应反应的报错主要是FutureWarning
,如下报错例子:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy,xxxxx....... -------(后面都省略,都是类似的报错,还很长)-------