0%

pytorch environment

building python environment are literally troublesome. It take me several hours. And I find that the best approach to build environment is to follow the offical document.
I downloaded pytorch and the bash code below.

1
2
3
conda create -n ai_env python=3.8 cudatoolkit=11.8 cudnn=8.2 -c conda-forge

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

reference:

pytorch download

Maybe there are many clashing between these package. Different python version exist different libiom5md.dll

a temporary way is adding code in running py

1
2
import os
os.environ["KMP_DUPLICATE_LIB_OK"] = "True"
請打賞支待一下.