Skip to content

Instantly share code, notes, and snippets.

@rangsimanketkaew
Last active January 1, 2022 07:56
Show Gist options
  • Save rangsimanketkaew/9ba07bdc281db6c61a30715aa96690ee to your computer and use it in GitHub Desktop.
Save rangsimanketkaew/9ba07bdc281db6c61a30715aa96690ee to your computer and use it in GitHub Desktop.
Install TensorFlow v2

Create virutal env

conda create -n tf
conda activate tf
conda install python
conda update --all -y

Install TF via PIP

pip install tensorflow

Install TF for GPU via Conda (recommended)

conda install cudatoolkit
pip install tensorflow-gpu

Test TF

python -c 'import tensorflow as tf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment