PyTorch software installation and environment construction steps

1. Installation environment

pytorch1_7
https://blog.csdn.net/jiangyangll/article/details/121047633
pytorch deep learning version corresponding

conda install pytorch==1.7.0 torchvision==0.8.0 cudatoolkit=10.2
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=10.2 -c pytorch

2. Install the library

python -m pip install --upgrade pip 
update pip

pip install scipy
installs the scipy library

pip install imageio
image processing

Pip install einops
tensor operations

Pip install opencv-python
pip install opencv-contrib-python
安装cv2

Pip install kornia=0.5.8
Pay attention to version, calculate SSIM

pip install pillow
    pandas

# ImportError: cannot import name 'NotRequired' from 'typing_extensions' #139
# pip install -U typing-extensions

conda env list conda environment list
conda remove --name env_name --all delete the environment
conda remove --name env_name package_name delete a package in the environment

3. Install Pycharm2022 and crack it

pycharm2022 crack
http://www.itmind.net/14907.html
1. Move the ja-netfilter-all activation folder to a certain location on the computer
2. Click to run the install-current-user.vbs script to install for the current user Crack patch
3, view user environment variables

4. Install MATLABR2018b

Install MATLABR2018b
https://blog.csdn.net/nzzynl95_/article/details/110796579

5. Use requirements.txt to install the required library

导出requirements.txt
conda list -e > requirements.txt

Generate requirement depends on
pip freeze > requirements.txt
install requirement depends on
pip install -r requirements.txt
 

Guess you like

Origin blog.csdn.net/jiangyangll/article/details/129310538