xxxxxxxxxx
py -m pip install tensorflow
# contact me on discord if you need any help deep#3775
xxxxxxxxxx
######## for Python 2.7
pip install --upgrade pip
pip install --upgrade tensorflow
######## for Python 3.n
pip3 install --upgrade pip
pip3 install --upgrade tensorflow
xxxxxxxxxx
# Requires the latest pip
pip install --upgrade pip
# Current stable release for CPU and GPU
pip install tensorflow
# Or try the preview build (unstable)
pip install tf-nightly
xxxxxxxxxx
# conda is the easiest way to install tensorflow (especially old versions)
conda search tensorflow
conda install tensorflow==1.15.0
xxxxxxxxxx
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/
python3 -m pip install tensorflow
# Verify install:
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
xxxxxxxxxx
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
yarn add @tensorflow/tfjs
npm install @tensorflow/tfjs