如何解决tenserflow安装中由其他版本的软件包引起的错误

2024-06-14 02:49:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我执行了命令pip install tensorflow。 但是安装给了我以下错误。下面是日志的一部分

ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

tf-nightly 2.5.0.dev20201102 requires grpcio~=1.32.0, but you'll have grpcio 1.33.2 which is incompatible.
tf-nightly 2.5.0.dev20201102 requires numpy~=1.19.2, but you'll have numpy 1.18.5 which is incompatible.
tensorflow-federated-nightly 0.17.0.dev20201031 requires absl-py~=0.9.0, but you'll have absl-py 0.11.0 which is incompatible.
tensorflow-federated-nightly 0.17.0.dev20201031 requires grpcio~=1.29.0, but you'll have grpcio 1.33.2 which is incompatible.
Successfully installed numpy-1.18.5

在执行上述命令之前,我卸载了numpy、grpcio、absl py


Tags: thepynumpyyouwhichistensorflowhave