Programming language

Work Instruction

Install VS Code

  • install VS code
sudo snap install --classic code

Install python

  • install python extension
  • in terminal,
sudo apt install python3-pip
pip install numpy
  • Generate example file like below
import numpy as np
print(np.log10(2))
python3 example.py

Install Jupyter

  • install ipykernel as VS code recommend
  • make some.ipynb

convert .ipynb to .md

  • install jupyter library
pip install jupyter
  • move to directory which has file.py
cd _posts/HowToInstall
  • convert .ipynb to .md
jupyter nbconvert --to markdown 2023-08-01-Python-Practice.ipynb

execute jupyter notebook

sudo apt install jupyter-core
jupyter notebook
  • (open explorer)

library

Tensorflow

pip install tensorflow # tensorflow-gpu는 2.1 이후 tensorflow로 통합됨.

Pytorch

https://pytorch.org/get-started/locally/

window

pip upgrade

python -m pip install --upgrade pip