簡體   English   中英

無法在 python 3.8 中安裝 tensorflow

[英]Can't install tensorflow in python 3.8

I've been trying to install tensorflow on windows using pip with pip install --upgrade tensorflow and with the url pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.2.0-cp38-cp38-win_amd64.whl

使用普通的 pip 方法,我得到“找不到滿足要求的版本”,而使用 url,我得到錯誤“tensorflow_gpu-2.2.0-cp38-cp38-win_amd64.whl 在此平台上不受支持。 "

我已經安裝了 cuda 並且我正在使用 python 3.8 64Bits 和 pip 19.0.3

編輯:我還為 Visual Studio 2015、2017 和 2019 的東西安裝了 Microsoft Visual C++ Redistributable

看來您已經發布了 tensorflow 的正確鏈接,但是當您發送嘗試安裝輪子時收到的錯誤代碼時,它是 python 3.7 的輪子,因此鏈接中的“cp37”是“cp38”。 確認您正在嘗試安裝正確的文件,如果還有其他問題,請告訴我。 試試這個 url: https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-2.2.0-cp38-cp38-win_amd64.whl

暫無
暫無

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

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