PC Software Installation
PC Software Installation: Editor, GitBash, Python3, Anaconda3, CUDA & CuDNN, Tensorflow & PyTorch installation.
List of PC Software to install
- Editor
- OS
- GPU
- Python
- Tensorflow/Pytorch
Editor
For Windows: install Notepad++
For Ubuntu / MacOS: no intallation needed, use built-in editors
- nano (for Ubuntu / MacOS)
- vim (for Ubuntu / MacOS)
Terminal
install Git for Windows
ls -l
(列出目錄檔案)cd ~
(換目錄)mkdir new
(產生新檔案夾)rm file_name
(移除檔案)rm –rf directory_name
(移除檔案夾)df .
(顯示SD卡已用量)du –sh directory
(查看某檔案夾之儲存用量)free
(檢查動態記憶體用量)ps –a
(列出正在執行的程序)kill -9 567
(移除程序 id=567)cat /etc/os-release
(列出顯示檔案內容,此檔案是作業系統版本)vi file_name
(編輯檔案)nano file_name
(編輯檔案)clear
(清除螢幕顯示)history
(列出操作記錄)
install Python3 on Windows PC
Python3.11.7 for Windows
- Go to https://www.python.org/downloads/windows/
- Download Windows installer (64-bit)
- Customomize installation to set directory to
C:\Python3
checking Python version on Ubuntu PC
Ubuntu 20.04 LTS
$ python3 -V
Python 3.8.10
Ubuntu 22.04 LTS
$ python3 -V
Python 3.10.4
List of Python packages for installation
- Open GitBash / Ubuntu Terminal
python3 -V
python3 –m pip install --upgrade pip
pip -V
pip install jupyter
pip install pandas
pip install matplotlib pillow imutils
pip install opencv-python
pip install scikit-learn
git clone https://github.com/rkuo2000/cv2
git clone https://github.com/rkuo2000/tf
install Tensorflow
-
using pip to install tensorflow
pip install tensorflow
-
using anaconda to install tensorflow
$ conda activate tensor
(tensor) $ conda install tensorflow
install PyTorch
- PyTorch get-started
pip install torch torchvision
Learn Programming
Python Programming
Tensorflow Turorials
PyTorch Tutorials
Supplement
Anaconda3
(用於安裝一串版本相容的Python packages)
Anaconda3 on Windows
Anaconda3 on Ubuntu
How to Install Anaconda on Ubuntu 18.04 and 20.04
- download Anaconda3
$ curl -O https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
- install Anaconda3
$ bash Anaconda3-2021.11-Linux-x86_64.sh
- create env
(base) $ conda create -n tensor python=3.9
- activate env
(base) $ conda activate tensor
- deactivate env
(tensor) $ conda deactivate
- remove an env
(base) $ conda-env remove -n tensor
GPU acceleration
Google Colab
Google Colab 教學
Google Colab 教學 (1)|Python 雲端開發環境安裝與快速導覽
This site was last updated June 29, 2024.