html>
$ docker run --name cuda_anaconda --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --gpus all -p 8080:8888 -it nvcr.io/nvidia/tensorflow:21.08-tf2-py3 ================ == TensorFlow == ================ NVIDIA Release 21.08-tf2 (build 26011968) TensorFlow Version 2.5.0 Container image Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. Copyright 2017-2021 The TensorFlow Authors. All rights reserved. NVIDIA Deep Learning Profiler (dlprof) Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. Various files include modifications (c) NVIDIA CORPORATION. All rights reserved. This container image and its contents are governed by the NVIDIA Deep Learning Container License. By pulling and using the container, you accept the terms and conditions of this license: https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license WARNING: The NVIDIA Driver was not detected. GPU functionality will not be available. Use 'nvidia-docker run' to start this container; see https://github.com/NVIDIA/nvidia-docker/wiki/nvidia-docker . NOTE: MOFED driver for multi-node communication was not detected. Multi-node communication performance may be reduced.
[注意] nvidia-docker は既にサポートされていないので、特に対応をしないことにする。
Anaconda3-2022.05-Linux-x86_64.sh
root@7653699c443d:/workspace# ./Anaconda*sh Welcome to Anaconda3 2022.05 (略) done installation finished. Do you wish the installer to initialize Anaconda3 by running conda init? [yes|no] [no] >>> yes no change /root/anaconda3/condabin/conda no change /root/anaconda3/bin/conda no change /root/anaconda3/bin/conda-env no change /root/anaconda3/bin/activate no change /root/anaconda3/bin/deactivate no change /root/anaconda3/etc/profile.d/conda.sh no change /root/anaconda3/etc/fish/conf.d/conda.fish no change /root/anaconda3/shell/condabin/Conda.psm1 no change /root/anaconda3/shell/condabin/conda-hook.ps1 no change /root/anaconda3/lib/python3.9/site-packages/xontrib/conda.xsh no change /root/anaconda3/etc/profile.d/conda.csh modified /root/.bashrc ==> For changes to take effect, close and re-open your current shell. <== If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base false Thank you for installing Anaconda3! =========================================================================== Working with Python and Jupyter is a breeze in DataSpell. It is an IDE designed for exploratory data analysis and ML. Get better data insights with DataSpell. DataSpell for Anaconda is available at: https://www.anaconda.com/dataspell
$ . /root/.bashrc
$ conda create -n tf2_gpu python=3.8 jupyter
$ conda activate tf2_gpu
(tf2_gpu)$ pip install tensorflow==2.8.3 (tf2_gpu)$ pip list | grep numpy ← 既にインストールされている (tf2_gpu)$ pip install matplotlib (tf2_gpu)$ pip install scikit-learn (tf2_gpu)$ pip install pandas (tf2_gpu)$ pip install janome