This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# According to the official "Build from source" steps: | |
# https://www.tensorflow.org/install/source | |
pip install -U 'future>=0.17.1' | |
pip install -U keras_applications --no-deps | |
pip install -U keras_preprocessing --no-deps | |
# My own additions | |
pip install -U numpy six wheel pip | |
# Download the TensorFlow 2.1 source: | |
curl -LO https://github.com/tensorflow/tensorflow/archive/v2.1.0.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
# Press [ENTER] | |
sudo apt-get install python3.7 python3.7-{dev,venv,distutils} | |
# Then create a virtual environment, for ex.: | |
mkdir ~/venvs && cd ~/venvs | |
python3.7 -m venv tf21 | |
source tf21/bin/activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt install -y nvidia-driver-435 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add NVIDIA package repositories | |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.1.243-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1804_10.1.243-1_amd64.deb | |
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | |
sudo apt-get update | |
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb | |
sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb | |
sudo apt-get update | |
# Install NVIDIA driver |
OlderNewer