Install Jupyter & Tensorflow on Ubuntu: Unterschied zwischen den Versionen
Aus exmediawiki
C.heck (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „ #Python installieren: sudo apt-get install python-pip python-dev #Wissenschaftliche Pakete installieren: sudo apt-get install build-essential cmake git u…“) |
C.heck (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
− | + | Python installieren: | |
sudo apt-get install python-pip python-dev | sudo apt-get install python-pip python-dev | ||
− | + | Wissenschaftliche Pakete installieren: | |
sudo apt-get install build-essential cmake git unzip pkg-config libopenblas-dev liblapack-dev | sudo apt-get install build-essential cmake git unzip pkg-config libopenblas-dev liblapack-dev | ||
Zeile 16: | Zeile 16: | ||
sudo apt-get install python-opencv | sudo apt-get install python-opencv | ||
− | + | GPU-Unterstützung einrichten: | |
− | + | ||
+ | CUDA-Downloaden | ||
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64 | wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64 | ||
oder | oder | ||
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb | wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb | ||
− | + | Tensorflow installieren | |
− | + | ||
+ | ohne GPU | ||
pip install tensorflow | pip install tensorflow | ||
− | + | mit GPU | |
pip install tensorflow-gpu | pip install tensorflow-gpu | ||
− | + | Keras installieren | |
pip install keras | pip install keras | ||
− | + | alternativer keras install | |
git clone https://github.com/fchollet/keras | git clone https://github.com/fchollet/keras | ||
cd keras | cd keras | ||
sudo python setup.py install | sudo python setup.py install |
Aktuelle Version vom 11. Oktober 2018, 15:37 Uhr
Python installieren:
sudo apt-get install python-pip python-dev
Wissenschaftliche Pakete installieren:
sudo apt-get install build-essential cmake git unzip pkg-config libopenblas-dev liblapack-dev
sudo apt-get install python-numpy python-scipy python-matplotlib
sudo apt-get install libhdf5-serial-dev python-h5py
sudo apt-get install graphviz
sudo apt-get install python-opencv
GPU-Unterstützung einrichten:
CUDA-Downloaden
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64
oder
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
Tensorflow installieren
ohne GPU
pip install tensorflow
mit GPU
pip install tensorflow-gpu
Keras installieren
pip install keras
alternativer keras install
git clone https://github.com/fchollet/keras cd keras sudo python setup.py install