CCBD Win10環境配置

西北逍遥發表於2024-03-21

(base) C:\Users\luo>
(base) C:\Users\luo>nvidia-smi
Thu Mar 21 10:54:51 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 516.94       Driver Version: 516.94       CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ... WDDM  | 00000000:01:00.0  On |                  N/A |
|  0%   35C    P8    14W / 184W |    312MiB /  8192MiB |      1%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      5804    C+G   ...artMenuExperienceHost.exe    N/A      |
|    0   N/A  N/A      6328    C+G   C:\Windows\explorer.exe         N/A      |
|    0   N/A  N/A      7232    C+G   ...w5n1h2txyewy\SearchUI.exe    N/A      |
|    0   N/A  N/A      7672    C+G   ...ekyb3d8bbwe\YourPhone.exe    N/A      |
|    0   N/A  N/A      7852    C+G   ...es.TextInput.InputApp.exe    N/A      |
+-----------------------------------------------------------------------------+

(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Jun__8_16:59:34_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.7, V11.7.99
Build cuda_11.7.r11.7/compiler.31442593_0

(base) C:\Users\luo>
(base) C:\Users\luo>

conda create -n wind_2021 python==3.7

CCBD Win10環境配置
(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>conda create -n wind_2021 python==3.7
Channels:
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: D:\Anaconda\install\envs\wind_2021

  added / updated specs:
    - python==3.7


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2022.12.7          |   py37haa95532_0         149 KB
    pip-22.3.1                 |   py37haa95532_0         2.7 MB
    python-3.7.0               |       hea74fb7_0        16.6 MB
    setuptools-65.6.3          |   py37haa95532_0         1.1 MB
    wheel-0.38.4               |   py37haa95532_0          82 KB
    wincertstore-0.2           |   py37haa95532_2          15 KB
    ------------------------------------------------------------
                                           Total:        20.7 MB

The following NEW packages will be INSTALLED:

  certifi            pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0
  pip                pkgs/main/win-64::pip-22.3.1-py37haa95532_0
  python             pkgs/main/win-64::python-3.7.0-hea74fb7_0
  setuptools         pkgs/main/win-64::setuptools-65.6.3-py37haa95532_0
  vc                 pkgs/main/win-64::vc-14.2-h21ff451_1
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
  wheel              pkgs/main/win-64::wheel-0.38.4-py37haa95532_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py37haa95532_2


Proceed ([y]/n)? y


Downloading and Extracting Packages:
python-3.7.0         | 16.6 MB   | ######################################################################################################################1     |  96%
pip-22.3.1           | 2.7 MB    | ########################################################################################################################### | 100%
setuptools-65.6.3    | 1.1 MB    | ########################################################################################################################### | 100%
certifi-2022.12.7    | 149 KB    | ########################################################################################################################### | 100%
wheel-0.38.4         | 82 KB     | ########################################################################################################################### | 100%

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate wind_2021
#
# To deactivate an active environment, use
#
#     $ conda deactivate


(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>
(base) C:\Users\luo>
View Code

conda activate wind_2021

#CUDA

conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia

CCBD Win10環境配置
(wind_2021) D:\>pip list
Package            Version
------------------ ---------
brotlipy           0.7.0
certifi            2022.12.7
cffi               1.15.1
charset-normalizer 2.0.4
cryptography       39.0.1
flit_core          3.6.0
idna               3.4
mkl-fft            1.3.1
mkl-random         1.2.2
mkl-service        2.4.0
numpy              1.21.5
Pillow             9.4.0
pip                22.3.1
pycparser          2.21
pyOpenSSL          23.0.0
PySocks            1.7.1
requests           2.28.1
setuptools         65.6.3
six                1.16.0
torch              1.13.1
torchaudio         0.13.1
torchvision        0.14.1
typing_extensions  4.4.0
urllib3            1.26.14
wheel              0.38.4
win-inet-pton      1.1.0
wincertstore       0.2

(wind_2021) D:\>
View Code

(wind_2021) D:\>
(wind_2021) D:\>python
Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>> import torch
>>>
>>>
>>> print(torch.__version__)
1.13.1
>>>
>>>
>>> torch.cuda.is_available()
True
>>>
>>>

CUDA

cuDNN

Pytorch

#############################

相關文章