简体   繁体   中英

Pip installing Tensorflow always fails

My environment setup:

  • Python version: 3.8.3
  • pip version: 20.2.4

Pip commands used:

  • 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. If it doesn't help it might eventually get fixed by flushing DNS cache:

  1. Enter cmd in Run's Open box and click OK to open the Command Prompt.

  2. Input ipconfig /flushdns in the Prompt, and press the Enter key.

  3. Restart your router after flushing 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 . And it actually starts installing for you which signifies there is no versioning issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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