簡體   English   中英

無法安裝 tensorflow-gpu

[英]Cannot install tensorflow-gpu

我正在嘗試安裝 tensorflow-gpu,但出現以下錯誤,請幫我解決它。

錯誤:由於 EnvironmentError 無法安裝軟件包:[Errno 2] 沒有這樣的文件或目錄:'C:\Users\Pushkar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\站點包\tensorflow_estimator\python\estimator\canned\linear_optimizer\python\utils\__pycache__\sharded_mutable_dense_hashtable.cpython-37.pyc'

嘗試 python 3.6 而不是 python 3.7 並檢查您的 CUDA 版本。

if your Cuda is 9.2 go with tf-gpu 1.12.3 if you have Cuda 10 or 10.1 you can go with the latest version.

或者您可以使用 anaconda 直接安裝 tensorflow-gpu,您無需擔心 Cuda 或 cudnn,只需要在系統中安裝 nvidia-driver。

conda create --name tf_gpu
activate tf_gpu
conda install tensorflow-gpu

暫無
暫無

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

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