简体   繁体   中英

Cannot install tensorflow-gpu

Im trying to intall tensorflow-gpu but Im getting the following error please help me sove it.

ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\Users\Pushkar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\tensorflow_estimator\python\estimator\canned\linear_optimizer\python\utils\__pycache__\sharded_mutable_dense_hashtable.cpython-37.pyc'

Try python 3.6 instead of python 3.7 and check your CUDA version.

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.

or you can directly install tensorflow-gpu using anaconda, you don't need to worry about Cuda or cudnn, just you need to have nvidia-driver in your system.

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

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