简体   繁体   English

如何在我的计算机上安装 TensorFlow? Pip 安装不工作

[英]How do I get TensorFlow to install on my computer? Pip install is not working

I am trying to run tensorflow for some simple computer vision recognition programs, however I get an error statement every time I try to install the library using Visual Studio Code.我正在尝试为一些简单的计算机视觉识别程序运行 tensorflow,但是每次我尝试使用 Visual Studio Code 安装库时都会收到一条错误语句。 I am using Python 3.8.我正在使用 Python 3.8。 Below is the error I get when I try the pip install.以下是我在尝试 pip 安装时遇到的错误。

pip install tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

Help is greatly appreciated.非常感谢帮助。 Thank you.谢谢你。

Do you have the latest version of pip?你有最新版本的pip吗?

Try running:尝试运行:

pip install --upgrade pip

first.第一的。

Otherwise, if you just want to try it out, Google Colab has tensorflow already installed.否则,如果您只是想尝试一下,Google Colab 已经安装了 tensorflow。 You can upload images you want Google Colab to process to Google Drive.您可以将希望 Google Colab 处理的图像上传到 Google 云端硬盘。

You need to have the latest version of pip in order to install tensorflow. You can upgrade pip using the below command:您需要拥有最新版本的 pip 才能安装 tensorflow。您可以使用以下命令升级 pip:

python -m pip install --upgrade pip

After upgrading Pip, it should work fine.升级Pip后,应该可以正常使用了。

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

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