conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/simpleitk
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
bash Anaconda3-2023.09-0-Linux-x86_64.sh
yes
bash Anaconda3-2023.09-0-Linux-x86_64.sh
nvidia-smi
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/simpleitk
conda create -n Pytorch-cu121-1 python=3.10
conda activate Pytorch-cu121-1
conda install cudatoolkit=12.1
conda create -n Pytorch-cu118-1 python=3.10
conda activate Pytorch-cu118-1
conda install cudatoolkit=11.8
conda install cudnn
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda activate Pytorch-cu118-1
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda activate Pytorch-cu118-1
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda activate Pytorch-cu118-1
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip3 install opencv_python
pip3 install scipy
pip3 install scikit-learn
pip3 install matplotlib
pip3 install pandas
pip3 install tqdm
pip3 install jupyterlab
pip3 install ipykernel
python -m ipykernel install --user --name Pytorch-cu118-1 --display-name "Pytorch-cu118-1"
pip3 install ipywidgets widgetsnbextension pandas-profiling
jupyter nbextension enable --py widgetsnbextension
pip3 install ipywidgets widgetsnbextension pandas-profiling
conda activate Pytorch-cu118-1
pip3 install jupyterlab
pip3 install ipykernel
python -m ipykernel install --user --name Pytorch-cu118-1 --display-name "Pytorch-cu118-1"
pip3 install ipywidgets widgetsnbextension pandas-profiling
jupyter nbextension enable --py widgetsnbextension
jupyter lab
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-02.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
taskset -c 0,1,2,3 python GPT-2-4-005-01.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-001-23.py
taskset -c 0,1,2,3 python GPT-001-24.py
history
pip3 install ipywidgets widgetsnbextension pandas-profiling
jupyter nbextension enable --py widgetsnbextension
jupyter lab
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-02.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-2-4-005-00.py
taskset -c 0,1,2,3 python GPT-2-4-005-01.py
conda activate Pytorch-cu118-1
taskset -c 0,1,2,3 python GPT-001-23.py
taskset -c 0,1,2,3 python GPT-001-24.py
history
标签:log,cu118,--,python,Pytorch,conda,install,txt
From: https://www.cnblogs.com/guanghui-hua/p/18048447