私的AI研究会 > ProjectEnv4
AI開発プロジェクト実行に必要な環境を新しく作成する手順(最新版)
『PyTorch ではじめる AI開発』以降のページを実行するために新しく環境を作成する
同時に「NVIDIA cuda GPU」を使用できる環境構築をする
HP Victus 15L Gaming TG02-2001jp
> nvidia-smi Fri Aug 16 06:12:45 2024 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 560.81 Driver Version: 560.81 CUDA Version: 12.6 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce RTX 4060 WDDM | 00000000:01:00.0 On | N/A | | 33% 33C P8 N/A / 115W | 346MiB / 8188MiB | 5% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ +-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 7288 C+G ...siveControlPanel\SystemSettings.exe N/A | | 0 N/A N/A 8652 C+G C:\Windows\explorer.exe N/A | | 0 N/A N/A 9396 C+G ...nt.CBS_cw5n1h2txyewy\SearchHost.exe N/A | | 0 N/A N/A 9432 C+G ...2txyewy\StartMenuExperienceHost.exe N/A | | 0 N/A N/A 9888 C+G ...GeForce Experience\NVIDIA Share.exe N/A | | 0 N/A N/A 12016 C+G ...CBS_cw5n1h2txyewy\TextInputHost.exe N/A | +-----------------------------------------------------------------------------------------+Graphic board: NVIDIA GeForce RTX 4060
> nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation Built on Fri_Jun_14_16:44:19_Pacific_Daylight_Time_2024 Cuda compilation tools, release 12.6, V12.6.20 Build cuda_12.6.r12.6/compiler.34431801_0
#ref(): File not found: "20231215_043714_001s.jpg" at page "ProjectEnv4"
(base) echo $env:PYTHONPATH C:\anaconda_win\workspace_py37\mylib;C:\anaconda_win\workspace\lib;C:\anaconda_win\workspace_2\mylib2
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Users\<User>\anaconda3' "・次のように変更 <User> = ユーザー名 C: = anaconda_winを配置したドライブ
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Users\<User>\anaconda3' ; Set-Location 'c:\anaconda_win' "
> git config --global user.name izuts > git config --global user.email izutsum@venus.dti.ne.jp > ssh-keygen Generating public/private rsa key pair. : デフォルトで問題ないので何も入力せずにEnterを押す
> git --version git version 2.43.0.windows.1