簡體   English   中英

無法使用 pip 安裝 tensorflow

[英]Cannot install tensorflow using pip

I am trying to call a simple keras.Sequential() model in python 3.9 (64bit), however when trying to install tensorflow using pip I get the following error:

ERROR: Could not find a version that satisfies the requirement tensorflow
ERROR: No matching distribution found for tensorflow

堆積此錯誤后,我遵循了此修復程序: TensorFlow not found using pip並嘗試使用最新版本的 CPU 僅 windows 輪使用以下命令:

install python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.4.0-cp38-cp38-win_amd64.whl

但是,我收到以下錯誤:

ERROR: tensorflow_cpu-2.4.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.

我能找到的唯一答案是: Tensorflow install error: not a supported wheel on this platform

但是答案與python2.7有關,不適用於這種情況。

有誰能夠幫助理解為什么我發現安裝tensorflow如此困難。

謝謝。

看來TensorFlow 只支持 Python 3.5-3.8 ,所以您無法安裝它,因為您的 Python 版本是 3.9。

如果要安裝 TensorFlow,則需要使用不同版本的 Python。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM