Ubuntu : install Miniconda, Jupyter notebook
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh
Quick command line install
https://docs.anaconda.com/miniconda/install/#quick-command-line-install
$: python –version
Python 3.12.8
/home/zsolt/Python_projects/anaconda:
conda create –prefix /home/zsolt/Python_projects/anaconda/tensorflow1/env
conda activate /home/zsolt/Python_projects/anaconda/tensorflow1/env
conda deactivate
sudo apt install python3-pip
cd /home/zsolt/Python_projects/anaconda/tensorflow1/
install notebook: conda install jupyter
start: jupyter notebook
Install TensorFlow with pip
https://www.tensorflow.org/install/pip
python3 -m pip install 'tensorflow[and-cuda]'
# Verify the installation:
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
python -c “import tensorflow as tf; print(tf.config.list_physical_devices(‘GPU’))”
pip install --upgrade pip
pip install tensorflow[and-cuda]
Verify:
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
####################################
cd /home/zsolt/Python_projects/anaconda/tensorflow1/
conda activate /home/zsolt/Python_projects/anaconda/tensorflow1/env
jupyter notebook
####################################
uninstall TensorFlow:
(ezzel töröltem /home/zsolt/miniconda3/ a duplán installált TensorFlow-t
pip uninstall tensorflow
pip uninstall tensorflow-gpu
#########################################
NEM így!
pip install tensorflow-hub
A Jupyter Notbook-ban futtatni, mert különben máshova telepíti:
!pip install tensorflow-hub