Friday, May 15, 2020

How To Setup Anaconda and Jupyter Notebook , Tensorflow, Keras On Ubuntu 18.04

Video Tutorial - https://youtu.be/AwyplkF8Dqo

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages. It is commonly used for data science, machine learning, large-scale data processing, scientific computing, and predictive analytics.
Offcial Website -https://www.anaconda.com/

Jupyter Notebook is an open source and interactive web app that you can use to create documents that contain live code, equations, visualizations, and explanatory text. Jupyter Notebook supports more than 40 programming languages.
Offcial Website -https://jupyter.org/

TensorFlow is a free and open-source platform for machine learning built by Google. It is used by a number of organizations including Twitter, PayPal, Intel, Lenovo, and Airbus.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Testing Environment: Ubuntu 18.04 LTS 64 Bit
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt update ; apt install -y build-essential net-tools curl git software-properties-common python3-pip python3-setuptools python3-dev

curl https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh --output anaconda.sh
sha256sum anaconda.sh
bash anaconda.sh
source ~/.bashrc
conda upgrade conda
conda upgrade --all
conda info
conda create --name NEW_env python=3
conda activate NEW_env
conda install notebook ipykernel jupyterlab
conda install python=3.6.6
pip install tensorflow         [ pip install --upgrade tensorflow ]
pip install Keras
pip show tensorflow
python
import tensorflow as tf
print(tf.__version__)
jupyter-notebook -allow-root
Keras Version - python -c 'import keras; print(keras.__version__)'
conda deactivate
jupyter-notebook --allow-root &
jupyter-notebook stop

 

TensorFlow 2.0 Hello World -

import tensorflow as tf
msg = tf.constant('TensorFlow 2.0 Hello World')
tf.print(msg)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment