Skip to content

Instantly share code, notes, and snippets.

@tranlethaison
Created July 31, 2019 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tranlethaison/4b2414b31ac2215bc3acb58c29d23534 to your computer and use it in GitHub Desktop.
Save tranlethaison/4b2414b31ac2215bc3acb58c29d23534 to your computer and use it in GitHub Desktop.
TensorFlow 2.0 Beta install

TensorFlow 2.0 Beta install

Bellow is a simple method that works on any OS,
without messing up existing TensorFlow environment.

  • Dependencies: Conda
  • Using GPU:
    $ conda create -n tf2 python cudatoolkit=10.0 cupti cudnn
    $ conda activate tf2
    $ pip install tensorflow-gpu==2.0.0-beta1
  • Or not:
    $ conda create -n tf2 python 
    $ conda activate tf2
    $ pip install tensorflow==2.0.0-beta1
  • Check:
    $ python
    >>> import tensorflow as tf
    >>> tf.test.is_gpu_available()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment