水某這台報廢的 ThinkPad 筆電經我調校後變成我五斗櫃工作室上的準桌電 (電池 GG 了), 性能雖稍遜於我的 Swift 5, 但也堪用了. 今天在上面安裝了 TensorFlow 與 PyTorch, 兩個加起來近 445 MB, 還真是龐大啊!
C:\Users\User>pip install tensorflow
Collecting tensorflow
Downloading tensorflow-2.12.0-cp311-cp311-win_amd64.whl (1.9 kB)
Collecting tensorflow-intel==2.12.0 (from tensorflow)
Downloading tensorflow_intel-2.12.0-cp311-cp311-win_amd64.whl (272.9 MB)
.......
這台 ThinkPad 沒有獨顯, 故 PyTorch 要安裝 CPU 版 :
C:\Users\User>pip install torch torchvision torchaudio
Collecting torch
Downloading torch-2.0.1-cp311-cp311-win_amd64.whl (172.3 MB)
---------------------------------------- 172.3/172.3 MB 417.3 kB/s eta 0:00:00
Collecting torchvision
Downloading torchvision-0.15.2-cp311-cp311-win_amd64.whl (1.2 MB)
---------------------------------------- 1.2/1.2 MB 370.1 kB/s eta 0:00:00
Collecting torchaudio
Downloading torchaudio-2.0.2-cp311-cp311-win_amd64.whl (2.1 MB)
---------------------------------------- 2.1/2.1 MB 496.2 kB/s eta 0:00:00
.......
檢查版本 :
Python 3.11.2 (C:\Users\User\AppData\Local\Programs\Python\Python311\python.exe)
>>> import tensorflow as tf
>>> tf.__version__
'2.12.0'
>>> import torch
>>> print(torch.__version__)
2.0.1+cpu
>>> torch.cuda.is_available()
False
>>> import numpy as np
>>> print(np.__version__)
1.23.5
>>> import numpy as np
>>> print(np.__version__)
1.23.5
OK, 環境搭好等這陣子忙完後就可回來玩 ML 了.
沒有留言 :
張貼留言