6号笔记本环境配置

done
#
# To activate this environment, use
#
#     $ conda activate wind_2021
#
# To deactivate an active environment, use
#
#     $ conda deactivate


(base) F:>
(base) F:>
(base) F:>
(base) F:>
(base) F:>
(base) F:>

C:UsersBIM>
C:UsersBIM>
C:UsersBIM>nvidia-smi
Mon Mar 29 15:29:30 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 457.74 Driver Version: 457.74 CUDA Version: 11.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 308... WDDM | 00000000:01:00.0 Off | N/A |
| N/A 47C P0 24W / N/A | 183MiB / 16384MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+

C:UsersBIM>
C:UsersBIM>
C:UsersBIM>

(base) F:>
(base) F:>
(base) F:>
(base) F:>conda activate wind_2021

(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.8.1+cu111
  Downloading https://download.pytorch.org/whl/cu111/torch-1.8.1%2Bcu111-cp38-cp38-win_amd64.whl (3055.7 MB)
     |████████████████████████████████| 3055.7 MB 12 kB/s
Collecting torchvision==0.9.1+cu111
  Downloading https://download.pytorch.org/whl/cu111/torchvision-0.9.1%2Bcu111-cp38-cp38-win_amd64.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 6.4 MB/s
Collecting torchaudio===0.8.1
  Downloading https://download.pytorch.org/whl/torchaudio-0.8.1-cp38-none-win_amd64.whl (109 kB)
     |████████████████████████████████| 109 kB 3.2 MB/s
Collecting numpy
  Downloading numpy-1.20.2-cp38-cp38-win_amd64.whl (13.7 MB)
     |████████████████████████████████| 13.7 MB 1.3 MB/s
Collecting typing-extensions
  Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting pillow>=4.1.1
  Downloading Pillow-8.1.2-cp38-cp38-win_amd64.whl (2.2 MB)
     |████████████████████████████████| 2.2 MB 939 kB/s
Installing collected packages: typing-extensions, numpy, torch, pillow, torchvision, torchaudio
Successfully installed numpy-1.20.2 pillow-8.1.2 torch-1.8.1+cu111 torchaudio-0.8.1 torchvision-0.9.1+cu111 typing-extensions-3.7.4.3

(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>
(wind_2021) F:>python
Python 3.8.8 (default, Feb 24 2021, 15:54:32) [MSC v.1928 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import torch
>>>
>>> torch.__version__
'1.8.1+cu111'
>>>
>>>
>>>
>>> torch.cuda.is_available()
True
>>>
>>>
>>>
QQ 3087438119
原文地址:https://www.cnblogs.com/herd/p/14592607.html