导入tensorflow报错Cancelling an overlapped future failed的解决方法

环境:

Windows 11 x64
Python 3.8.0
ipython  8.12.2 

报错信息:

Cancelling an overlapped future failed

Python版本换成Python 3.10.7,重新安装tensorflow

Tensorflow 最高支持到Python 3.10.7,没有 TensorFlow 版本与 Python 3.12 、3.13一致,会导致安装失败。

  • └─ tensorflow is not installable because there are no viable options
  • ├─ tensorflow [1.10.0|1.9.0] would require
  • │ └─ python 3.5.* , which conflicts with any installable versions previously reported;
  • ├─ tensorflow [1.10.0|1.11.0|...|2.1.0] would require
  • │ └─ python 3.6.* , which conflicts with any installable versions previously reported;
  • ├─ tensorflow [1.13.1|1.14.0|...|2.9.1] would require
  • │ └─ python 3.7.* , which conflicts with any installable versions previously reported;
  • ├─ tensorflow [1.7.0|1.7.1|1.8.0] would require
  • │ └─ tensorboard [>=1.7.0,<1.8.0 |>=1.8.0,<1.9.0 ], which requires
  • │ └─ bleach 1.5.0 , which does not exist (perhaps a missing channel);
  • ├─ tensorflow [2.10.0|2.8.2|2.9.1] would require
  • │ └─ python 3.10.* , which conflicts with any installable versions previously reported;
  • ├─ tensorflow [2.10.0|2.3.0|...|2.9.1] would require
  • │ └─ python 3.8.* , which conflicts with any installable versions previously reported;
  • └─ tensorflow [2.10.0|2.5.0|2.6.0|2.8.2|2.9.1] would require
  • └─ python 3.9.* , which conflicts with any installable versions previously reported.

安装:

1、创新1个新的Python环境

conda create -n tensor03 python==3.10

conda activate tensor03

2、安装tensorflow 2.10版本

conda install tensorflow

3、安装ipython、 matplotlib

conda install ipython matplotlib

导入tensorflow报错Cancelling an overlapped future failed的解决方法_第1张图片

你可能感兴趣的:(tensorflow,人工智能,python)