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()