简体   繁体   English

Pip安装Tensorflow总是失败

[英]Pip installing Tensorflow always fails

My environment setup:我的环境设置:

  • Python version: 3.8.3 Python 版本:3.8.3
  • pip version: 20.2.4 pip 版本:20.2.4

Pip commands used: Pip 使用的命令:

  • pip install tensorflow
  • pip3 install --upgrade tensorflow

The error I keep getting:我不断收到的错误:

命令提示错误

Please help!请帮忙!

This is.network issue.这是网络问题。 Happens due to incorrect.network config/ simultaneous requests to the same outbound server.由于不正确的网络配置/对同一出站服务器的同时请求而发生。 Try restarting PC and running commands in a fresh terminal one at a time.尝试重新启动 PC 并一次在新终端中运行命令。 If it doesn't help it might eventually get fixed by flushing DNS cache:如果它没有帮助,它最终可能会通过刷新 DNS 缓存来修复:

  1. Enter cmd in Run's Open box and click OK to open the Command Prompt.在运行的打开框中输入 cmd,然后单击确定以打开命令提示符。

  2. Input ipconfig /flushdns in the Prompt, and press the Enter key.在Prompt中输入ipconfig /flushdns,按回车键。

  3. Restart your router after flushing DNS.刷新 DNS 后重新启动路由器。

If issue still persists try some other.network related fixes.如果问题仍然存在,请尝试一些其他与网络相关的修复。

PS The error isnt because of versions as tensorflow is available for python 3.8 . PS 错误不是因为版本tensorflow 可用于 python 3.8 And it actually starts installing for you which signifies there is no versioning issue.它实际上开始为您安装,这表示没有版本控制问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM