TensorFlow not found using pip

后端 未结 30 2527
有刺的猬
有刺的猬 2020-11-22 08:06

I\'m trying to intstall TensorFlow using pip:

$ pip install tensorflow --user
Collecting tensorflow
Could not find          


        
30条回答
  •  心在旅途
    2020-11-22 08:19

    update 2019: for install the preview version of TensorFlow 2 in Google Colab you can use:

    !wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64 -O cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
    !dpkg -i cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
    !apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub
    !apt-get update
    !apt-get install cuda
    !pip install tf-nightly-gpu-2.0-preview
    

    and for install the TensorFlow 2 bye pip you can use: pip install tf-nightly-gpu-2.0-preview for GPU and pip install tf-nightly-2.0-preview for CPU.

提交回复
热议问题