03 February 2020

How To Install Tensorflow in Ubuntu 18.04.2 LTS

My spec
First
This article using Anaconda
1. Download in https://www.anaconda.com/distribution/#download-section with Linux Installer
2. Install Python, pip3:

sudo apt update
sudo apt install python3-dev python3-pip
sudo pip3 install -U virtualenv

- for using conda i must install pip version:

sudo apt install python-pip

- Install conda:

pip install conda

- if any error:

pip install --upgrade pip
python3 -m pip install --upgrade pip
pip --version

3. create a new conda environment containing TensorFlow and activate it

conda create -n tensorflow_env tensorflow
conda activate tensorflow_env

4. Select conda to activate the main environment (base):

source /my_anaconda_path/bin/activate

5. Test my installation

python

so run inside python

import tensorflow as tf

or follow as:

https://www.tensorflow.org/tutorials/


THIS TUTORIAL ALSO WORKED IN MY WINDOW10 CPU
Share:

1 komentar:

  1. Harrah's Atlantic City - MapyRO
    Harrah's Resort 군포 출장샵 Atlantic 제주도 출장샵 City is an 진주 출장안마 MGM Resorts Luxury 세종특별자치 출장안마 Destination, offering an unparalleled travel experience on the 안성 출장샵 East Coast. Harrah's Atlantic City.

    ReplyDelete

Blog Archive